Rework makefiles to make ${PARTIALLD} available.

This commit is contained in:
whitequark 2018-01-10 00:28:55 +00:00 committed by radare
parent f552b65ddf
commit dcd1ef1c6b
22 changed files with 25 additions and 0 deletions

View File

@ -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=

View File

@ -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

View File

@ -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}

View File

@ -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

View File

@ -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}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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}

View File

@ -7,6 +7,7 @@ ARCH=arm
RANLIB=ranlib
AR=ar
CC_AR=${AR} -r ${LIBAR}
PARTIALLD=ld -r --whole-archive
ONELIB=0
OSTYPE=android

View File

@ -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

View File

@ -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

View File

@ -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