mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-05 12:08:24 +00:00
9e08da0fa6
- Update spp and force hidden visibility - Use R_API wisely - RSys.prefix returns const things - Use -install_name on Apple - Fix merged lib visibility linking on Linux - Use OSTYPE instead of BUILD_OS - Honor crosscompiler-objcopy and support android like linux - Add extra missing archives - Fix for android - Upgrade spp and sdb - Skip libr. from symstall - Add --enable-merged configure option - Use --enable-merged on ios-sdk - Upgrade sdb again for js0n - Kill sys/ios-shell.sh - Msvc dynamic build fix
41 lines
746 B
Makefile
41 lines
746 B
Makefile
ifeq (${_INCLUDE_MK_GCC_},)
|
|
_INCLUDE_MK_GCC_=1
|
|
CC?=gcc
|
|
LINK=
|
|
OBJCOPY=objcopy
|
|
RANLIB=ranlib
|
|
ONELIB=0
|
|
CC_AR=ar q ${LIBAR}
|
|
CFLAGS+=-MD
|
|
CFLAGS_INCLUDE=-I
|
|
LDFLAGS_LINK=-l
|
|
LDFLAGS_LINKPATH=-L
|
|
CFLAGS_OPT0=-O0
|
|
CFLAGS_OPT1=-O1
|
|
CFLAGS_OPT2=-O2
|
|
CFLAGS_OPT3=-O3
|
|
CFLAGS_DEBUG=-g
|
|
LD?=ld
|
|
|
|
ifeq ($(OSTYPE),darwin)
|
|
ARCH=$(shell uname -m)
|
|
#CFLAGS+=-arch ${ARCH}
|
|
#LDFLAGS+=-arch ${ARCH}
|
|
PARTIALLD=${LD} -r -all_load
|
|
CFLAGS+=-fno-common
|
|
LDFLAGS_LIB=-dynamiclib
|
|
LDFLAGS_SONAME=-Wl,-install_name,${LIBDIR}/
|
|
else
|
|
PARTIALLD=${LD} -r --whole-archive
|
|
LDFLAGS_LIB=${LDFLAGS} -shared
|
|
#ifneq (${NAME},)
|
|
#LDFLAGS_LIB+=-Wl,-soname,lib${NAME}.${EXT_SO}.${VERSION}
|
|
#endif
|
|
LDFLAGS_SONAME=-Wl,-soname=
|
|
endif
|
|
# XXX
|
|
#LDFLAGS_SONAME=-D_
|
|
|
|
CC_LIB=${CC} ${LDFLAGS_LIB} -o ${LIBSO}
|
|
endif
|