mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 13:19:54 +00:00
Rework makefiles to make ${PARTIALLD} available.
This commit is contained in:
parent
f552b65ddf
commit
dcd1ef1c6b
@ -42,6 +42,7 @@ endif
|
||||
RANLIB=${CROSS}ranlib
|
||||
AR=${CROSS}ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=${CROSS}ld -r --whole-archive
|
||||
ONELIB=0
|
||||
OSTYPE=android
|
||||
LINK=
|
||||
|
@ -8,6 +8,7 @@ USERCC=${CROSS}gcc
|
||||
AR=${CROSS}ar
|
||||
RANLIB=${CROSS}ranlib
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=${CROSS}ld -r --whole-archive
|
||||
|
||||
ONELIB=0
|
||||
OSTYPE=gnulinux
|
||||
|
@ -17,11 +17,13 @@ CFLAGS_DEBUG=-g
|
||||
|
||||
ifeq ($(OSTYPE),darwin)
|
||||
ARCH=$(shell uname -m)
|
||||
PARTIALLD=ld -r -all_load
|
||||
#CFLAGS+=-arch ${ARCH}
|
||||
#LDFLAGS+=-arch ${ARCH}
|
||||
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}
|
||||
|
@ -9,6 +9,7 @@ LINK=
|
||||
RANLIB=emranlib
|
||||
ONELIB=0
|
||||
CC_AR=emar q ${LIBAR}
|
||||
PARTIALLD=emld -r
|
||||
PIC_CFLAGS=-fPIC
|
||||
CFLAGS+=-MD
|
||||
CFLAGS_INCLUDE=-I
|
||||
|
@ -19,10 +19,12 @@ 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}
|
||||
|
@ -8,6 +8,7 @@ ONELIB=0
|
||||
LINK=-shared
|
||||
AR=${CROSS}ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=${CROSS}ld -r --whole-archive
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
||||
CC_LIB=${CC} -shared -o
|
||||
|
@ -8,6 +8,7 @@ ONELIB=0
|
||||
LINK=-shared
|
||||
AR=${CROSS}ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=ld -r --whole-archive
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
||||
CC_LIB=${CC} -shared -o
|
||||
|
@ -8,6 +8,7 @@ OSTYPE=windows
|
||||
LINK=-shared
|
||||
AR=${CROSS}ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=ld -r --whole-archive
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
||||
CC_LIB=${CC} -shared -o
|
||||
|
@ -7,6 +7,7 @@ OSTYPE=windows
|
||||
LINK=
|
||||
AR=${CROSS}ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=ld -r --whole-archive
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
||||
CC_LIB=${CC} -shared -o
|
||||
|
@ -7,6 +7,7 @@ OSTYPE=windows
|
||||
LINK=
|
||||
AR=${CROSS}ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=ld -r --whole-archive
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
||||
CC_LIB=${CC} -shared -o
|
||||
|
@ -8,6 +8,7 @@ OSTYPE=windows
|
||||
LINK=
|
||||
AR=ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=ld -r --whole-archive
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
||||
CC_LIB=${CC} -shared -o
|
||||
|
@ -8,6 +8,7 @@ OSTYPE=windows
|
||||
LINK=
|
||||
AR=${CROSS}ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=ld -r --whole-archive
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
||||
CC_LIB=${CC} -shared -o
|
||||
|
@ -8,6 +8,7 @@ OSTYPE=windows
|
||||
LINK=
|
||||
AR=${CROSS}ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=ld -r --whole-archive
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
||||
CC_LIB=${CC} -shared -o
|
||||
|
@ -7,6 +7,7 @@ OSTYPE=darwin
|
||||
LINK=
|
||||
AR=ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=ld -r -all_load
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS}
|
||||
CC_LIB=${CC} -shared -o
|
||||
|
@ -7,6 +7,7 @@ ONELIB=0
|
||||
LINK=-shared
|
||||
AR=mingw32-gcc-ar
|
||||
CC_AR=${AR} ${LIBAR}
|
||||
PARTIALLD=mingw32-gcc-ld -r --whole-archive
|
||||
PICFLAGS=
|
||||
#CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
||||
CFLAGS+=${PICFLAGS} -D__WINDOWS__=1
|
||||
|
@ -8,6 +8,7 @@ USERCC=${CROSS}gcc
|
||||
RANLIB=${CROSS}ranlib
|
||||
AR=${CROSS}ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=${CROSS}ld -r --whole-archive
|
||||
|
||||
ONELIB=0
|
||||
OSTYPE=gnulinux
|
||||
|
@ -6,6 +6,7 @@ OSTYPE=qnx
|
||||
LINK=
|
||||
AR=${CROSS}ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=${CROSS}ld -r --whole-archive
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS}
|
||||
CC_LIB=${CC} -shared -o
|
||||
|
@ -14,9 +14,11 @@ CFLAGS_OPT2=-O2
|
||||
CFLAGS_OPT3=-O3
|
||||
|
||||
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}
|
||||
|
@ -7,6 +7,7 @@ ARCH=arm
|
||||
RANLIB=ranlib
|
||||
AR=ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=ld -r --whole-archive
|
||||
|
||||
ONELIB=0
|
||||
OSTYPE=android
|
||||
|
@ -9,6 +9,7 @@ LINK=
|
||||
RANLIB=emranlib
|
||||
ONELIB=0
|
||||
CC_AR=emar q ${LIBAR}
|
||||
PARTIALLD=emld -r
|
||||
PIC_CFLAGS=-fPIC
|
||||
CFLAGS+=-MD
|
||||
CFLAGS_INCLUDE=-I
|
||||
|
@ -6,6 +6,7 @@ OSTYPE=windows
|
||||
LINK=
|
||||
AR=${CROSS}ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=${CROSS}ld -r --whole-archive
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
||||
CC_LIB=${CC} -shared -o
|
||||
|
@ -7,6 +7,7 @@ OSTYPE=windows
|
||||
LINK=
|
||||
AR=${CROSS}ar
|
||||
CC_AR=${AR} -r ${LIBAR}
|
||||
PARTIALLD=${CROSS}ld -r --whole-archive
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
||||
CC_LIB=${CC} -shared -o
|
||||
|
Loading…
Reference in New Issue
Block a user