Skip to content

Commit

Permalink
- Fixed linking error in travis dpdk build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajamshed committed Aug 15, 2018
1 parent 29efeb2 commit 84fd426
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .buildtest_dpdk.sh
@@ -1,17 +1,13 @@
#!/usr/bin/env bash
git submodule init
git submodule update
cd dpdk/
make install T=x86_64-native-linuxapp-gcc
cd ..
export RTE_SDK=`echo $PWD`/dpdk
export RTE_TARGET=x86_64-native-linuxapp-gcc
export MTCP_TARGET=`echo $PWD`/mtcp
#cd dpdk
#rm -rf *
#ln -s ../dpdk-17.08/x86_64-native-linuxapp-gcc/lib/ lib
#ln -s ../dpdk-17.08/x86_64-native-linuxapp-gcc/include include
#cd ..
sed -i -e 's/O_TO_EXE_STR =/\$(shell if [ \! -d \${RTE_SDK}\/\${RTE_TARGET}\/lib ]\; then mkdir \${RTE_SDK}\/\${RTE_TARGET}\/lib\; fi)\nLINKER_FLAGS = \$(call linkerprefix,\$(LDLIBS))\n\$(shell echo \${LINKER_FLAGS} \> \${RTE_SDK}\/\${RTE_TARGET}\/lib\/ldflags\.txt)\nO_TO_EXE_STR =/g' $RTE_SDK/mk/rte.app.mk
cd dpdk/
make install T=x86_64-native-linuxapp-gcc
cd ..
autoreconf -ivf
./configure --with-dpdk-lib=$RTE_SDK/$RTE_TARGET
make
Expand Down

0 comments on commit 84fd426

Please sign in to comment.