=== modified file 'Makefile' --- Makefile 2009-10-21 23:02:42 +0000 +++ Makefile 2009-10-25 19:06:56 +0000 @@ -9,9 +9,14 @@ #DEBUG=-ggdb3 # For info about _FORTIFY_SOURCE, see # -FORTIFY=-D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIC -fPIE -LINK_FORTIFY_LD=-z relro -fPIE -LINK_FORTIFY=-pie +FORTIFY=-D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIC +LINK_FORTIFY_LD=-z relro -z now +LINK_FORTIFY= +ifndef BROKEN_PIE +FORTIFY += -fPIE +LINK_FORTIFY_LD += -fPIE +LINK_FORTIFY += -pie +endif #COVERAGE=--coverage OPTIMIZE=-Os LANGUAGE=-std=gnu99 === modified file 'debian/rules' --- debian/rules 2009-01-18 00:18:50 +0000 +++ debian/rules 2009-10-25 19:06:56 +0000 @@ -15,6 +15,15 @@ # This has to be exported to make some magic below work. export DH_OPTIONS +ifneq (,$(findstring :$(DEB_HOST_ARCH):,:mips:mipsel:)) + BROKEN_PIE := yes + export BROKEN_PIE +endif +ifneq (,$(findstring :$(DEB_BUILD_ARCH):,:mips:mipsel:)) + BROKEN_PIE := yes + export BROKEN_PIE +endif + configure: configure-stamp configure-stamp: dh_testdir