dect
/
libpcap
Archived
13
0
Fork 0

On FreeBSD/SPARC64, use -fPIC - it's apparently necessary.

This commit is contained in:
Guy Harris 2010-05-29 19:27:49 -07:00
parent 9980b3601f
commit f0a4bdf8e0
2 changed files with 36 additions and 2 deletions

19
aclocal.m4 vendored
View File

@ -245,7 +245,24 @@ AC_DEFUN(AC_LBL_SHLIBS_INIT,
# or accepts command-line arguments like
# those the GNU linker accepts.
#
V_CCOPT="$V_CCOPT -fpic"
# Some instruction sets require -fPIC on some
# operating systems. Check for them. If you
# have a combination that requires it, add it
# here.
#
PIC_OPT=-fpic
case "$host_cpu" in
sparc64*)
case "$host_os" in
freebsd*)
PIC_OPT=-fPIC
;;
esac
;;
esac
V_CCOPT="$V_CCOPT $PIC_OPT"
V_SONAME_OPT="-Wl,-soname,"
V_RPATH_OPT="-Wl,-rpath,"
;;

19
configure vendored
View File

@ -3231,7 +3231,24 @@ _ACEOF
# or accepts command-line arguments like
# those the GNU linker accepts.
#
V_CCOPT="$V_CCOPT -fpic"
# Some instruction sets require -fPIC on some
# operating systems. Check for them. If you
# have a combination that requires it, add it
# here.
#
PIC_OPT=-fpic
case "$host_cpu" in
sparc64*)
case "$host_os" in
freebsd*)
PIC_OPT=-fPIC
;;
esac
;;
esac
V_CCOPT="$V_CCOPT $PIC_OPT"
V_SONAME_OPT="-Wl,-soname,"
V_RPATH_OPT="-Wl,-rpath,"
;;