make: fix cannot find -ltcc with --disable-rpath
This commit is contained in:
parent
73cb4392ab
commit
44f7055a04
1 changed files with 1 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue