summaryrefslogtreecommitdiff
path: root/package/microperl
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-17 21:55:49 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-17 21:55:49 +0100
commit15c84adca94bfe4a89ece5c04f06a884cf508ebb (patch)
tree727d3fd768a1abe75521190b90833b3a68cce4c6 /package/microperl
parent0de5d9ecedff55481b3c1eb9c3841de17716a485 (diff)
fix packages to be compile with stack protector
- libtool do not pass -fstack-protector while linking, but this is required to successfully link libraries or executables with SSP - pass LDFLAGS for non-libtool packages
Diffstat (limited to 'package/microperl')
-rw-r--r--package/microperl/patches/patch-Makefile_micro11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/microperl/patches/patch-Makefile_micro b/package/microperl/patches/patch-Makefile_micro
index 38cedeff7..01bca8bdc 100644
--- a/package/microperl/patches/patch-Makefile_micro
+++ b/package/microperl/patches/patch-Makefile_micro
@@ -1,6 +1,15 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- perl-5.10.0.orig/Makefile.micro 2007-12-18 11:47:07.000000000 +0100
-+++ perl-5.10.0/Makefile.micro 2009-09-14 18:52:23.000000000 +0200
++++ perl-5.10.0/Makefile.micro 2011-01-16 00:16:05.000000000 +0100
+@@ -3,7 +3,7 @@ CCFLAGS = -c
+ DEFINES = -DPERL_CORE -DPERL_MICRO -DSTANDARD_C -DPERL_USE_SAFE_PUTENV
+ OPTIMIZE =
+ CFLAGS = $(DEFINES) $(OPTIMIZE)
+-LDFLAGS =
++LDFLAGS ?=
+ LIBS = -lm
+ _O = .o
+ ENV = env
@@ -46,7 +46,7 @@ Config = '$$Config{$$1}'
patch_uconfig:
$(PERL) -MConfig -pi -e "s/^((?:short|int|long(?:dbl|long)?|ptr|double|[iun]v|u?quad|[iu]\d+|fpos|lseek)(?:size|type)|byteorder|d_quad|quadkind|use64.+)=.*/\\1='"$(Config)"'/g" uconfig.shx