lang/perl5.10 doesn't build with gcc 4.5.1
b. f.
bf1783 at googlemail.com
Sat Jun 19 15:26:10 UTC 2010
lang/perl5.* fails with -fstack-protector in CFLAGS, when built with
the base system compiler, on some architectures. I used the attached
patch with the base system compiler and lang/perl5.10 on 9-CURRENT
i386 to fix the problem. However, I never attempted to use it with
lang/gcc45, because I did not want to introduce circular dependencies
in my ports. Your problem may be related.
b.
-------------- next part --------------
diff -ruN perl5.10.orig/Makefile perl5.10/Makefile
--- perl5.10.orig/Makefile 2009-07-21 02:31:02.819354593 -0400
+++ perl5.10/Makefile 2009-07-21 04:09:30.370905698 -0400
@@ -53,7 +53,8 @@
-Dsiteman1dir=${PREFIX}/man/man1 \
-Ui_malloc -Ui_iconv -Uinstallusrbinperl \
-Dcc="${CC}" -Duseshrplib -Dinc_version_list=none \
- -Dccflags=-DAPPLLIB_EXP=\"${BSDPAN_DEST}\"
+ -Dccflags="${CFLAGS:M-fstack-protector*} -DAPPLLIB_EXP=\"${BSDPAN_DEST}\"" \
+ -Dldflags="${CFLAGS:M-fstack-protector*}"
LOCALE_CLEANUP= LANG="" LC_ALL="" LC_COLLATE="" LC_CTYPE="" \
LC_MESSAGES="" LC_MONETARY="" LC_NUMERIC="" \
LC_TIME=""
diff -ruN perl5.10.orig/files/patch-freebsd.sh perl5.10/files/patch-freebsd.sh
--- perl5.10.orig/files/patch-freebsd.sh 2009-07-21 02:31:02.810357360 -0400
+++ perl5.10/files/patch-freebsd.sh 2009-07-21 04:34:08.052915842 -0400
@@ -25,7 +25,7 @@
libpth="/usr/lib /usr/local/lib"
glibpth="/usr/lib /usr/local/lib"
- ldflags="-Wl,-E "
-+ ldflags="%%PTHREAD_LIBS%% -Wl,-E "
++ ldflags="${ldflags} %%PTHREAD_LIBS%% -Wl,-E "
lddlflags="-shared "
fi
cccdlflags='-DPIC -fPIC'
More information about the freebsd-ports
mailing list