diff options
| author | Henry Kroll III <henry@comptune.com> | 2010-12-20 05:55:54 -0800 |
|---|---|---|
| committer | Henry Kroll III <henry@comptune.com> | 2010-12-20 05:55:54 -0800 |
| commit | 90355c78ed51e414427349172759b31696281a6f (patch) | |
| tree | 54a8114197cbd7fbe1df36b331819d4bb74ed72b | |
| parent | 3b3a7cc8ba337c86f93bb9d7d980f4220e13dcb6 (diff) | |
| download | tinycc-90355c78ed51e414427349172759b31696281a6f.tar.gz tinycc-90355c78ed51e414427349172759b31696281a6f.tar.bz2 | |
configure: add --disable-rpath option (Fedora)
| -rw-r--r-- | Makefile | 4 | ||||
| -rwxr-xr-x | configure | 6 |
2 files changed, 10 insertions, 0 deletions
@@ -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= @@ -140,6 +140,8 @@ for opt do ;; --disable-static) disable_static="yes" ;; + --disable-rpath) disable_rpath="yes" + ;; --with-libgcc) use_libgcc="yes" ;; --with-selinux) have_selinux="yes" @@ -244,6 +246,7 @@ echo " --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]" echo " --sysroot=PREFIX prepend PREFIX to library/include paths []" echo " --cc=CC use C compiler CC [$cc]" echo " --disable-static make libtcc.so instead of libtcc.a" +echo " --disable-rpath disable use of -rpath with the above" echo " --with-libgcc use /lib/libgcc_s.so.1 instead of libtcc.a" echo " --enable-mingw32 build windows version on linux with mingw32" echo " --enable-cygwin build windows version on windows with cygwin" @@ -397,6 +400,9 @@ fi if test "$disable_static" = "yes" ; then echo "DISABLE_STATIC=yes" >> config.mak fi +if test "$disable_rpath" = "yes" ; then + echo "DISABLE_RPATH=yes" >> config.mak +fi if test "$use_libgcc" = "yes" ; then echo "#define CONFIG_USE_LIBGCC" >> $TMPH echo "CONFIG_USE_LIBGCC=yes" >> config.mak |
