aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHenry Kroll III <henry@comptune.com>2010-12-20 05:55:54 -0800
committerHenry Kroll III <henry@comptune.com>2010-12-20 05:55:54 -0800
commit90355c78ed51e414427349172759b31696281a6f (patch)
tree54a8114197cbd7fbe1df36b331819d4bb74ed72b /Makefile
parent3b3a7cc8ba337c86f93bb9d7d980f4220e13dcb6 (diff)
downloadtinycc-90355c78ed51e414427349172759b31696281a6f.tar.gz
tinycc-90355c78ed51e414427349172759b31696281a6f.tar.bz2
configure: add --disable-rpath option (Fedora)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e6367fc..90ba184 100644
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,10 @@ endif
ifdef DISABLE_STATIC
LIBTCC=libtcc.so.1.0
LINK_LIBTCC=-Wl,-rpath,"$(libdir)"
+ifdef DISABLE_RPATH
+CFLAGS+=-fPIC
+LINK_LIBTCC=-ltcc
+endif
else
LIBTCC=libtcc.a
LINK_LIBTCC=