path: root/Makefile
diff options
authorDan Nicholson <>2008-05-05 18:24:21 -0700
committerDan Nicholson <>2008-05-09 07:05:16 -0700
commitd368eed9c78aa3ced8540c66bdc4c5e1d4a067b4 (patch)
tree88835899cdc679dd4b335c9f1aa58d6b3579372c /Makefile
parent0dbd5c864047ad2ad3d459493c9e82be57427f83 (diff)
autoconf: Attempt to figure out the PIC flags for the platform
This commit adds an autoconf macro, MESA_PIC_FLAGS, which sets the PIC flags according to platform and static/shared setting. The platform specifics are taken straight from libtool.m4 and stripped down to just the flags and platforms we cover in Mesa. This should hopefully make it possible to use autoconf on non-GCC platforms. The macro is added external to in acinclude.m4 since it's pretty bloated. Note to BSDers: Previously, x86 defaulted to non-PIC on FreeBSD. I didn't carry that preference into this macro. Instead, you can just use --disable-pic where desired.
Diffstat (limited to 'Makefile')
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 96d38858492..4668443b778 100644
--- a/Makefile
+++ b/Makefile
@@ -191,6 +191,7 @@ MAIN_FILES = \
$(DIRECTORY)/Makefile* \
$(DIRECTORY)/configure \
+ $(DIRECTORY)/acinclude.m4 \
$(DIRECTORY)/aclocal.m4 \
$(DIRECTORY)/descrip.mms \
$(DIRECTORY)/mms-config. \
@@ -455,9 +456,9 @@ ACLOCAL = aclocal
AUTOCONF = autoconf
+aclocal.m4: acinclude.m4
-configure: aclocal.m4
+configure: aclocal.m4 acinclude.m4