mirror of
https://github.com/radareorg/radare2.git
synced 2025-04-02 09:31:45 +00:00

To ease cross-development Gentoo alows installing only fully qualified toolchains tools: x86_64-pc-linux-gnu-ranlib and similar. The change allow overriding RANLIB variable similar to existing CC, HOST_CC, LD and friends. Reported-by: Agostino Sarubbo Bug: https://bugs.gentoo.org/720700 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
31 lines
548 B
Makefile
31 lines
548 B
Makefile
CC=tcc
|
|
RANLIB?=ranlib
|
|
ONELIB=0
|
|
AR=ar
|
|
CC_AR=${AR} -r ${LIBAR}
|
|
CC_LIB=${CC} -shared -o ${LIBSO}
|
|
CFLAGS_INCLUDE=-I
|
|
LDFLAGS_LINK=-l
|
|
LDFLAGS_LINKPATH=-L
|
|
CFLAGS_OPT0=-O0
|
|
CFLAGS_OPT1=-O1
|
|
CFLAGS_OPT2=-O2
|
|
CFLAGS_OPT3=-O3
|
|
LD?=ld
|
|
|
|
ifeq ($(OSTYPE),darwin)
|
|
PARTIALLD=${LD} -r -all_load
|
|
LDFLAGS_LIB=-dynamiclib
|
|
LDFLAGS_SONAME=-Wl,-install_name,
|
|
else
|
|
PARTIALLD=${LD} -r --whole-archive
|
|
LDFLAGS_LIB=-shared
|
|
LDFLAGS_LIB+=-Dxx
|
|
#Wl,-soname,lib${NAME}.${EXT_SO}.${VERSION}
|
|
LDFLAGS_SONAME=-Dxx
|
|
#Wl,-soname=
|
|
endif
|
|
|
|
CC_LIB=${CC} ${LDFLAGS_LIB} -o ${LIBSO}
|
|
FLAGS_DEBUG=-g
|