Date: Sat, 19 Jun 2010 15:25:55 +0000 From: "b. f." <bf1783@googlemail.com> To: dougb@FreeBSD.org Cc: freebsd-ports@FreeBSD.org Subject: Re: lang/perl5.10 doesn't build with gcc 4.5.1 Message-ID: <AANLkTimoea2dSiGKEFaOdT5xITtfYuSCh-Lj0G1iE4My@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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.
[-- Attachment #2 --]
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'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimoea2dSiGKEFaOdT5xITtfYuSCh-Lj0G1iE4My>
