aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2014-07-31 13:41:03 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2014-08-04 11:15:46 +0400
commit57611a5057abfa20842593a049edc7ad9386e468 (patch)
tree4227f718a1a3971d60478c262a9c02b5ac8ab196 /example
parent940544e42a8c5ee6b0cd11cf257c745f802406bf (diff)
build both static and dynamic linked libs
Move static decisions to Makefiles instead in the configure scripts. This makes it possible to build binaries with shared, static or all-static without reconfiguring and libodp is built both static and dynamic per default. Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'example')
-rw-r--r--example/generator/Makefile.am1
-rw-r--r--example/l2fwd/Makefile.am1
-rw-r--r--example/odp_example/Makefile.am1
-rw-r--r--example/packet/Makefile.am1
-rw-r--r--example/packet_netmap/Makefile.am1
-rw-r--r--example/timer/Makefile.am1
6 files changed, 6 insertions, 0 deletions
diff --git a/example/generator/Makefile.am b/example/generator/Makefile.am
index d3bd5bfb7..5b3d55ac5 100644
--- a/example/generator/Makefile.am
+++ b/example/generator/Makefile.am
@@ -1,5 +1,6 @@
include $(top_srcdir)/example/Makefile.inc
bin_PROGRAMS = odp_generator
+odp_generator_LDFLAGS = $(AM_LDFLAGS) -static
dist_odp_generator_SOURCES = odp_generator.c
diff --git a/example/l2fwd/Makefile.am b/example/l2fwd/Makefile.am
index 9b5a7ef04..a83e75732 100644
--- a/example/l2fwd/Makefile.am
+++ b/example/l2fwd/Makefile.am
@@ -1,5 +1,6 @@
include $(top_srcdir)/example/Makefile.inc
bin_PROGRAMS = odp_l2fwd
+odp_l2fwd_LDFLAGS = $(AM_LDFLAGS) -static
dist_odp_l2fwd_SOURCES = odp_l2fwd.c
diff --git a/example/odp_example/Makefile.am b/example/odp_example/Makefile.am
index c1b4ed327..e6f23d0e2 100644
--- a/example/odp_example/Makefile.am
+++ b/example/odp_example/Makefile.am
@@ -1,5 +1,6 @@
include $(top_srcdir)/example/Makefile.inc
bin_PROGRAMS = odp_example
+odp_example_LDFLAGS = $(AM_LDFLAGS) -static
dist_odp_example_SOURCES = odp_example.c
diff --git a/example/packet/Makefile.am b/example/packet/Makefile.am
index 2d778ddd6..603a1abbf 100644
--- a/example/packet/Makefile.am
+++ b/example/packet/Makefile.am
@@ -1,5 +1,6 @@
include $(top_srcdir)/example/Makefile.inc
bin_PROGRAMS = odp_pktio
+odp_pktio_LDFLAGS = $(AM_LDFLAGS) -static
dist_odp_pktio_SOURCES = odp_pktio.c
diff --git a/example/packet_netmap/Makefile.am b/example/packet_netmap/Makefile.am
index 6db0f98d5..5a5913c10 100644
--- a/example/packet_netmap/Makefile.am
+++ b/example/packet_netmap/Makefile.am
@@ -2,6 +2,7 @@ include $(top_srcdir)/example/Makefile.inc
if ODP_NETMAP_ENABLED
bin_PROGRAMS = odp_pktio_netmap
+odp_pktio_netmap_LDFLAGS = $(AM_LDFLAGS) -static
endif
dist_odp_pktio_netmap_SOURCES = odp_pktio_netmap.c
diff --git a/example/timer/Makefile.am b/example/timer/Makefile.am
index 09253a6f0..6229f1311 100644
--- a/example/timer/Makefile.am
+++ b/example/timer/Makefile.am
@@ -1,5 +1,6 @@
include $(top_srcdir)/example/Makefile.inc
bin_PROGRAMS = odp_timer_test
+odp_timer_test_LDFLAGS = $(AM_LDFLAGS) -static
dist_odp_timer_test_SOURCES = odp_timer_test.c