summary refs log tree commit diff
path: root/sysdeps/sparc/Makefile
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-03-28 14:25:42 -0700
committerDavid S. Miller <davem@davemloft.net>2012-03-28 14:25:42 -0700
commit18c9d62b9c575a54f26ca5aebeb03dd7322fc180 (patch)
treeb2f22597956c015e5259cb947de32056281da4b6 /sysdeps/sparc/Makefile
parentfb289bde9a171c5f7fbcd1230018562dc0bd8ded (diff)
downloadglibc-18c9d62b9c575a54f26ca5aebeb03dd7322fc180.tar.gz
glibc-18c9d62b9c575a54f26ca5aebeb03dd7322fc180.tar.xz
glibc-18c9d62b9c575a54f26ca5aebeb03dd7322fc180.zip
Make sparc's -fPIC addition to ASFLAGS-.os more robust.
	* sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
	* sysdeps/sparc/sparc32/Makefile: rather than here...
	* sysdeps/sparc/sparc64/Makefile: and here.
Diffstat (limited to 'sysdeps/sparc/Makefile')
-rw-r--r--sysdeps/sparc/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/sparc/Makefile b/sysdeps/sparc/Makefile
index 1dd70e8b55..3f0c096400 100644
--- a/sysdeps/sparc/Makefile
+++ b/sysdeps/sparc/Makefile
@@ -15,3 +15,6 @@ ifeq ($(subdir),csu)
 CPPFLAGS-crti.S += -fPIC
 CPPFLAGS-crtn.S += -fPIC
 endif
+
+# The assembler on SPARC needs the -fPIC flag even when it's assembler code.
+ASFLAGS-.os += -fPIC