--- a/bakeconf.xml Tue Mar 04 11:00:38 2014 +0900
+++ b/bakeconf.xml Tue Mar 04 11:00:47 2014 +0900
@@ -124,7 +124,7 @@
<attribute name="LDFLAGS" value="-pie"/>
<attribute name="ignore_predefined_flags" value="True"/>
<attribute name="install_arguments" value="DESTDIR=$INSTALLDIR" />
- <attribute name="build_arguments" value="CCOPTS+=-fpic CCOPTS+=-D_GNU_SOURCE CCOPTS+=-O0 CCOPTS+=-U_FORTIFY_SOURCE LDFLAGS=-pie DEFINES+=-I$SRCDIR/../mptcp/arch/sim/include/ DEFINES+=-I$SRCDIR/../mptcp/include/uapi/ DEFINES+=-I$SRCDIR/../mptcp/include"/>
+ <attribute name="build_arguments" value="CCOPTS+=-fpic CCOPTS+=-D_GNU_SOURCE CCOPTS+=-O0 CCOPTS+=-U_FORTIFY_SOURCE LDFLAGS=-pie LDFLAGS+=-rdynamic DEFINES+=-I$SRCDIR/../mptcp/arch/sim/include/ DEFINES+=-I$SRCDIR/../mptcp/include/uapi/ DEFINES+=-I$SRCDIR/../mptcp/include"/>
</build>
</module>
@@ -176,7 +176,7 @@
<depends_on name="libexpat-dev" optional="False"/>
<build type="make" objdir="yes">
<attribute name="pre_installation" value="cd $SRCDIR;INSTALL_BASE=$INSTALLDIR ./configure;mkdir $INSTALLDIR/include;mkdir $INSTALLDIR/lib;mkdir $INSTALLDIR/bin"/>
- <attribute name="build_arguments" value="MORE_LDLIBS=-pie"/>
+ <attribute name="build_arguments" value="MORE_LDLIBS=-pie COPT+=-rdynamic"/>
<attribute name="new_variable" value="INSTALL_BASE=$INSTALLDIR" />
</build>
</module>
@@ -189,6 +189,7 @@
<build type="make" objdir="yes">
<attribute name="pre_installation" value="cd $SRCDIR;./configure --prefix=$INSTALLDIR"/>
<attribute name="patch" value="$SRCDIR/../ns-3-dce/utils/iperf_4_dce.patch"/>
+ <attribute name="build_arguments" value="LDFLAGS=-pie LDFLAGS+=-rdynamic"/>
</build>
</module>
@@ -278,7 +279,7 @@
<attribute name="LDFLAGS" value="-pie"/>
<attribute name="ignore_predefined_flags" value="True"/>
<attribute name="install_arguments" value="DESTDIR=$INSTALLDIR" />
- <attribute name="build_arguments" value="CCOPTS+=-fpic CCOPTS+=-D_GNU_SOURCE CCOPTS+=-O0 CCOPTS+=-U_FORTIFY_SOURCE LDFLAGS=-pie"/>
+ <attribute name="build_arguments" value="CCOPTS+=-fpic CCOPTS+=-D_GNU_SOURCE CCOPTS+=-O0 CCOPTS+=-U_FORTIFY_SOURCE CCOPTS+=-g LDFLAGS=-pie LDFLAGS+=-rdynamic"/>
</build>
</module>
@@ -346,7 +347,7 @@
<attribute name="extract_directory" value="wget-1.14"/>
</source>
<build type="make" objdir="yes">
- <attribute name="pre_installation" value="cd $SRCDIR; CFLAGS=-fPIC LDFLAGS=-pie ./configure --disable-opie --disable-digest --disable-ntlm --disable-largefile --disable-threads --disable-nls --disable-rpath --disable-iri --without-ssl --without-zlib --without-libiconv-prefix --without-libintl-prefix --without-libpth-prefix --without-included-regex --prefix=$INSTALLDIR"/>
+ <attribute name="pre_installation" value="cd $SRCDIR; CFLAGS='-fPIC -g' LDFLAGS='-pie -rdynamic' ./configure --disable-opie --disable-digest --disable-ntlm --disable-largefile --disable-threads --disable-nls --disable-rpath --disable-iri --without-ssl --without-zlib --without-libiconv-prefix --without-libintl-prefix --without-libpth-prefix --without-included-regex --prefix=$INSTALLDIR"/>
</build>
</module>
@@ -384,7 +385,7 @@
if not jobs == -1:
jobstr = ['-j', str(jobs)]
env.run(['make', 'CFLAGS=-fpic', 'CFLAGS+=-D_GNU_SOURCE', 'CFLAGS+=-g',
- 'CFLAGS+=-Wstrict-prototypes', 'CFLAGS+=-Wall', 'LDFLAGS=-pie',
+ 'CFLAGS+=-Wstrict-prototypes', 'CFLAGS+=-Wall', 'LDFLAGS=-pie', 'LDFLAGS+=-rdynamic',
'ping', 'ping6'] + jobstr,
directory=env.srcdir)
env.run(['mkdir', '-p' , env.installdir + '/bin_dce/'],
@@ -421,7 +422,7 @@
<build type="autotools" objdir="no">
<attribute name="supported_os" value="linux;linux2"/>
<attribute name="maintainer" value="yes" />
- <attribute name="configure_arguments" value="./configure CFLAGS=-fPIC LDFLAGS=-pie --prefix=$INSTALLDIR --enable-vt --with-builtin-crypto"/>
+ <attribute name="configure_arguments" value="./configure CFLAGS=-fPIC LDFLAGS='-pie -rdynamic' --prefix=$INSTALLDIR --enable-vt --with-builtin-crypto"/>
<attribute name="install_arguments" value="-n" />
<attribute name="post_installation" value="cd $SRCDIR; mkdir $INSTALLDIR/bin_dce; /bin/cp -f src/mip6d $INSTALLDIR/bin_dce"/>
</build>
@@ -476,7 +477,7 @@
<depends_on name="indent" optional="False"/>
<depends_on name="gawk" optional="False"/>
<build type="make" objdir="yes">
- <attribute name="pre_installation" value="cd $SRCDIR; CFLAGS='-fPIC -g' LDFLAGS=-pie ./configure --disable-shared --enable-static --disable-user --disable-group --disable-capabilities --prefix=$INSTALLDIR"/>
+ <attribute name="pre_installation" value="cd $SRCDIR; CFLAGS='-fPIC -g' LDFLAGS='-pie -rdynamic' ./configure --disable-shared --enable-static --disable-user --disable-group --disable-capabilities --prefix=$INSTALLDIR"/>
<attribute name="install_arguments" value="-n" />
<attribute name="post_installation" value="cd $SRCDIR; mkdir $INSTALLDIR/bin_dce; /bin/cp zebra/zebra $INSTALLDIR/bin_dce;/bin/cp ripd/ripd $INSTALLDIR/bin_dce;/bin/cp ripngd/ripngd $INSTALLDIR/bin_dce;/bin/cp ospfd/ospfd $INSTALLDIR/bin_dce;/bin/cp ospf6d/ospf6d $INSTALLDIR/bin_dce;/bin/cp bgpd/bgpd $INSTALLDIR/bin_dce"/>
</build>