mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
issue on FreeBSD 4.x, whose <elf.h> does not define ELFMAG and SELFMAG. PR: 85120 Submitted by: Vasil Dimov <vd@datamax.bg>
36 lines
1,019 B
Text
36 lines
1,019 B
Text
--- configure.orig Fri Aug 19 16:00:37 2005
|
|
+++ configure Fri Aug 19 16:05:31 2005
|
|
@@ -1142,7 +1142,7 @@
|
|
|
|
fi
|
|
|
|
-for ac_hdr in unistd.h stdint.h fcntl.h
|
|
+for ac_hdr in unistd.h stdint.h fcntl.h elf.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
@@ -3218,7 +3218,7 @@
|
|
fi
|
|
|
|
case "$host" in
|
|
- *-linux*|*-gnu*)
|
|
+ *-linux*|*-gnu*|*-freebsd*)
|
|
if test "$GCC" = yes; then
|
|
|
|
|
|
@@ -3273,13 +3273,12 @@
|
|
PICFLAGS='-fPIC -DPIC'
|
|
if test "$mr_enable_gnu_names" = yes
|
|
then SHLIB_SFX='-$(VERSION).so'
|
|
- else SHLIB_SFX='.so.$(VERSION)'
|
|
+ else SHLIB_SFX='.so.$(MAJOR)'
|
|
fi
|
|
SHLINK_SFX='.so'
|
|
SONAME_SFX='.so.$(MAJOR)'
|
|
- LINK_SHLIB='$(CC) -shared -Wl,-soname,$(SONAME)'
|
|
+ LINK_SHLIB='$(CC) -shared -Wl,-soname,$(SONAME) $(LDFLAGS)'
|
|
INSTALL_SHLIB='$(INSTALL_PROGRAM)'
|
|
- DEPSHLIBS='-lc'
|
|
else
|
|
echo "configure: warning: shared libraries not supported for $host" 1>&2
|
|
mr_enable_shared=no
|