@ -951,7 +951,7 @@ define transform-bc-to-so
$( hide ) m k d i r - p $( dir $ @)
$(hide) $(BCC_COMPAT) -O3 -o $(dir $@)/$(notdir $(< : .bc =.o )) -fPIC -shared \
-rt-path $( RS_PREBUILT_CLCORE) -mtriple $( RS_COMPAT_TRIPLE) $<
$( hide ) $( PRIVATE_CXX ) - s h a r e d - W l , - s o n a m e , $( notdir $ @) - n o s t d l i b \
$( hide ) $( PRIVATE_CXX _LINK ) - s h a r e d - W l , - s o n a m e , $( notdir $ @) - n o s t d l i b \
-Wl,-rpath,\$ $ORIGIN /../lib \
$( dir $@ ) /$( notdir $( <:.bc= .o) ) \
$( RS_PREBUILT_COMPILER_RT) \
@ -1534,7 +1534,7 @@ $(hide) mv -f $@.tmp $@
e n d e f
d e f i n e t r a n s f o r m - o - t o - a u x - e x e c u t a b l e - i n n e r
$( hide ) $( PRIVATE_CXX ) - p i e \
$( hide ) $( PRIVATE_CXX _LINK ) - p i e \
-Bdynamic \
-Wl,--gc-sections \
$( PRIVATE_ALL_OBJECTS) \
@ -1553,7 +1553,7 @@ $(transform-o-to-aux-executable-inner)
e n d e f
d e f i n e t r a n s f o r m - o - t o - a u x - s t a t i c - e x e c u t a b l e - i n n e r
$( hide ) $( PRIVATE_CXX ) \
$( hide ) $( PRIVATE_CXX _LINK ) \
-Bstatic \
-Wl,--gc-sections \
$( PRIVATE_ALL_OBJECTS) \
@ -1654,7 +1654,7 @@ endef
# it to be overriden en-masse see combo/linux-arm.make for an example.
i f n e q ( $( HOST_CUSTOM_LD_COMMAND ) , t r u e )
d e f i n e t r a n s f o r m - h o s t - o - t o - s h a r e d - l i b - i n n e r
$( hide ) $( PRIVATE_CXX ) \
$( hide ) $( PRIVATE_CXX _LINK ) \
-Wl,-rpath,\$ $ORIGIN /../$( notdir $( $( PRIVATE_2ND_ARCH_VAR_PREFIX) $( PRIVATE_PREFIX) OUT_SHARED_LIBRARIES) ) \
-Wl,-rpath,\$ $ORIGIN /$( notdir $( $( PRIVATE_2ND_ARCH_VAR_PREFIX) $( PRIVATE_PREFIX) OUT_SHARED_LIBRARIES) ) \
-shared -Wl,-soname,$( notdir $@ ) \
@ -1695,7 +1695,7 @@ endef
###########################################################
d e f i n e t r a n s f o r m - o - t o - s h a r e d - l i b - i n n e r
$( hide ) $( PRIVATE_CXX ) \
$( hide ) $( PRIVATE_CXX _LINK ) \
-nostdlib -Wl,-soname,$( notdir $@ ) \
-Wl,--gc-sections \
-shared \
@ -1730,7 +1730,7 @@ endef
###########################################################
d e f i n e t r a n s f o r m - o - t o - e x e c u t a b l e - i n n e r
$( hide ) $( PRIVATE_CXX ) - p i e \
$( hide ) $( PRIVATE_CXX _LINK ) - p i e \
-nostdlib -Bdynamic \
-Wl,-dynamic-linker,$( PRIVATE_LINKER) \
-Wl,--gc-sections \
@ -1773,7 +1773,7 @@ endef
###########################################################
d e f i n e t r a n s f o r m - o - t o - s t a t i c - e x e c u t a b l e - i n n e r
$( hide ) $( PRIVATE_CXX ) \
$( hide ) $( PRIVATE_CXX _LINK ) \
-nostdlib -Bstatic \
$( if $( filter $( PRIVATE_LDFLAGS) ,-shared) ,,-static) \
-Wl,--gc-sections \
@ -1811,7 +1811,7 @@ endef
i f n e q ( $( HOST_CUSTOM_LD_COMMAND ) , t r u e )
d e f i n e t r a n s f o r m - h o s t - o - t o - e x e c u t a b l e - i n n e r
$( hide ) $( PRIVATE_CXX ) \
$( hide ) $( PRIVATE_CXX _LINK ) \
$( PRIVATE_ALL_OBJECTS) \
-Wl,--whole-archive \
$( PRIVATE_ALL_WHOLE_STATIC_LIBRARIES) \