Backport #6734 ยป extdldflags.diff
w/configure.in | ||
---|---|---|
rb_cv_dlopen=yes],
|
||
[aix*], [ : ${LDSHARED='$(CC)'}
|
||
LDSHARED="$LDSHARED ${linker_flag}-G"
|
||
DLDFLAGS='-e$(TARGET_ENTRY)'
|
||
EXTDLDFLAGS='-e$(TARGET_ENTRY)'
|
||
XLDFLAGS="${linker_flag}"'-bE:$(ARCHFILE)'" ${linker_flag}-brtl"
|
||
XLDFLAGS="$XLDFLAGS ${linker_flag}-blibpath:${prefix}/lib:${LIBPATH:-/usr/lib:/lib}"
|
||
: ${ARCHFILE="ruby.imp"}
|
||
... | ... | |
[beos*], [ AS_CASE(["$target_cpu"],
|
||
[powerpc*], [
|
||
: ${LDSHARED='$(LD) -xms'}
|
||
DLDFLAGS="$DLDFLAGS "'-export $(TARGET_ENTRY) -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o'
|
||
EXTDLDFLAGS='-export $(TARGET_ENTRY)'
|
||
DLDFLAGS="$DLDFLAGS -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o"
|
||
LDFLAGS="$LDFLAGS -L/boot/home/config/lib -lbe -lroot"
|
||
],
|
||
[i586*], [
|
||
... | ... | |
[haiku*], [ AS_CASE(["$target_cpu"],
|
||
[powerpc*], [
|
||
: ${LDSHARED='$(LD) -xms'}
|
||
DLDFLAGS="$DLDFLAGS "'-export $(TARGET_ENTRY) -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o'
|
||
EXTDLDFLAGS='-export $(TARGET_ENTRY)'
|
||
DLDFLAGS="$DLDFLAGS -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o"
|
||
],
|
||
[i586*], [
|
||
: ${LDSHARED='$(LD) -shared'}
|
w/lib/mkmf.rb | ||
---|---|---|
CPPFLAGS = #{extconf_h}#{$CPPFLAGS}
|
||
CXXFLAGS = $(CFLAGS) #{CONFIG['CXXFLAGS']}
|
||
ldflags = #{$LDFLAGS}
|
||
dldflags = #{$DLDFLAGS}
|
||
dldflags = #{$DLDFLAGS} #{CONFIG['EXTDLDFLAGS']}
|
||
ARCH_FLAG = #{$ARCH_FLAG}
|
||
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
||
LDSHARED = #{CONFIG['LDSHARED']}
|