svn commit: trunk/uClibc

vda at uclibc.org vda at uclibc.org
Wed Apr 30 01:37:04 UTC 2008


Author: vda
Date: 2008-04-29 18:37:04 -0700 (Tue, 29 Apr 2008)
New Revision: 21900

Log:
guard against older ld's not understanding --sort-section alignment



Modified:
   trunk/uClibc/Rules.mak


Changeset:
Modified: trunk/uClibc/Rules.mak
===================================================================
--- trunk/uClibc/Rules.mak	2008-04-30 00:59:05 UTC (rev 21899)
+++ trunk/uClibc/Rules.mak	2008-04-30 01:37:04 UTC (rev 21900)
@@ -213,7 +213,12 @@
 	# Idx Name          Size      VMA       LMA       File off  Algn
 	#   0 .text         xxxxxxxx  00000000  00000000  xxxxxxxx  2**2 <===!
 	CPU_CFLAGS-y  += $(call check_gcc,-ffunction-sections -fdata-sections,)
-	CPU_LDFLAGS-y += -Wl,--sort-common -Wl,--sort-section -Wl,alignment
+ifneq ($(call check_ld,--sort-common,),)
+	CPU_LDFLAGS-y += -Wl,--sort-common
+endif
+ifneq ($(call check_ld,--sort-section alignment),)
+	CPU_LDFLAGS-y += -Wl,--sort-section,alignment
+endif
 
 	CPU_LDFLAGS-y+=-m32
 	CPU_CFLAGS-y+=-m32




More information about the uClibc-cvs mailing list