ppcrcd/trunk/Makefile

sparky cvs at pld-linux.org
Sat Jul 15 00:48:08 CEST 2006


Author: sparky
Date: Sat Jul 15 00:48:03 2006
New Revision: 7527

Modified:
   ppcrcd/trunk/Makefile
Log:
- let's try to rebuild with ass-needed, flag added to CFLAGS too (this produces
  a lot of junk messages during compilation, but not all specs use rpmldflags)


Modified: ppcrcd/trunk/Makefile
==============================================================================
--- ppcrcd/trunk/Makefile	(original)
+++ ppcrcd/trunk/Makefile	Sat Jul 15 00:48:03 2006
@@ -6,13 +6,15 @@
 
 SU = sudo
 BCOND = --without python --without smp --without doc
-CFLAGS = -Os -fsigned-char
 
+LDFLAGS := -Wl,--as-needed
+CFLAGS := -Os -fsigned-char
 CFLAGS += -fno-align-loops -fno-align-jumps 			\
 	-fno-align-functions -fno-align-labels			\
 	-fno-reorder-blocks -fno-reorder-blocks-and-partition	\
 	-fno-prefetch-loop-arrays -fno-tree-vect-loop-version	\
-	-fno-strict-aliasing -fwrapv
+	-fno-strict-aliasing -fwrapv $(LDFLAGS)
+CXXFLAGS := $(CFLAGS)
 
 DOCSRC	= images opts netbooting usb_boot chrp progs bonus net AirPort2
 YDOCSRC	= images opts
@@ -240,8 +242,9 @@
 		--define="_topdir $(PWD)/out/rpm"	\
 		$(notdir $(firstword $^)).spec		\
 		$(BCOND-$(notdir $(firstword $^))) $(BCOND)		\
-		--define="rpmcxxflags $(CFLAGS)"		\
-		--define="rpmcflags $(CFLAGS)";		\
+		--define="rpmcflags $(CFLAGS)"			\
+		--define="rpmcxxflags $(CXXFLAGS)"		\
+		--define="rpmldflags $(LDFLAGS)";		\
 		echo $$? > $(PWD)/EXIT) | tee $(PWD)/buildout;
 	[ `cat EXIT` == 0 ] || exit `cat EXIT`
 	rm -f RPMlist


More information about the pld-cvs-commit mailing list