mirror of
https://github.com/frida/tinycc
synced 2024-11-25 00:59:37 +03:00
configure: add --disable-rpath option (Fedora)
This commit is contained in:
parent
3b3a7cc8ba
commit
90355c78ed
4
Makefile
4
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=
|
||||
|
6
configure
vendored
6
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user