From 3a63d176198753d3a9c3d07eb7a574e6210bed8f Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 17 Jul 2009 09:36:01 -0700 Subject: [PATCH] Add option -fPIC (Position Independent Code) needed for x86_64. While the generic atomic implementation is not used by default for x86_64 or x86 builds, we still need to always build it with -fPIC if we ever want to use it on these platforms. --- lib/libspl/asm-generic/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libspl/asm-generic/Makefile.am b/lib/libspl/asm-generic/Makefile.am index f302dc8369..4f5032f739 100644 --- a/lib/libspl/asm-generic/Makefile.am +++ b/lib/libspl/asm-generic/Makefile.am @@ -7,7 +7,7 @@ atomic_SOURCE = atomic.c atomic_ASM = atomic.S COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -fPIC EXTRA_DIST = ${atomic_SOURCE} # Generates assembly to simplify inclusion in ../Makefile.am