1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

The jrtplib port is broken on amd64 as reported by Kris Kennaway

on Fri, 17 Oct 2003 16:36:54 -0700. This fix should be a temporal solution
until proper -fPIC option is added to configure by library developer
whom I've already notified.

PR:		58197
This commit is contained in:
James E. Housley 2003-11-03 01:13:16 +00:00
parent 7071730f20
commit ba3c58dd27
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92903

View File

@ -0,0 +1,40 @@
--- configure.orig Sat Oct 18 14:09:40 2003
+++ configure Sat Oct 18 14:22:56 2003
@@ -1187,7 +1187,7 @@
-RTP_CFLAGS="-O2"
+RTP_CFLAGS="-fPIC -O2"
RTP_TARGETS=dummymsg
RTP_ARFLAGS=
RTP_LDFLAGS=
@@ -1806,7 +1806,7 @@
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
-CFLAGS="-g"
+CFLAGS="-fPIC -g"
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
@@ -1856,15 +1856,15 @@
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
- CFLAGS="-g -O2"
+ CFLAGS="-fPIC -g -O2"
else
- CFLAGS="-g"
+ CFLAGS="-fPIC -g"
fi
else
if test "$GCC" = yes; then
- CFLAGS="-O2"
+ CFLAGS="-fPIC -O2"
else
- CFLAGS=
+ CFLAGS="-fPIC"
fi
fi
# Some people use a C++ compiler to compile C. Since we use `exit',