make: fix cannot find -ltcc with --disable-rpath

This commit is contained in:
Henry Kroll III 2010-12-21 08:44:48 -08:00
parent 73cb4392ab
commit 44f7055a04

View file

@ -66,8 +66,7 @@ ifdef DISABLE_STATIC
LIBTCC=libtcc.so.1.0 LIBTCC=libtcc.so.1.0
LINK_LIBTCC=-Wl,-rpath,"$(libdir)" LINK_LIBTCC=-Wl,-rpath,"$(libdir)"
ifdef DISABLE_RPATH ifdef DISABLE_RPATH
CFLAGS+=-fPIC LINK_LIBTCC=
LINK_LIBTCC=-ltcc
endif endif
else else
LIBTCC=libtcc.a LIBTCC=libtcc.a