From c8423ca5500312da4af95c0dda6399f7ea70673c Mon Sep 17 00:00:00 2001
From: Lars Eggert <200328+larseggert@users.noreply.github.com>
Date: Fri, 23 Oct 2020 05:42:48 +0300
Subject: [PATCH] Use "release" build profile, since "optimized" contains
 -march=native (#94)

* Use "release" build profile, since "optimized" contains -march=native

See https://www.nsnam.org/docs/tutorial/html/getting-started.html#id1

* Fix fd-net-device

* Fix?

* Try and find out what gets compiled

* Try and fix the copy

* Remove debug step
---
 sim/Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sim/Dockerfile b/sim/Dockerfile
index 8907584..91a7e5e 100644
--- a/sim/Dockerfile
+++ b/sim/Dockerfile
@@ -11,7 +11,7 @@ RUN mv /ns-allinone-$VERS/ns-$VERS /ns3
 WORKDIR /ns3
 
 RUN mkdir out/
-RUN ./waf configure --build-profile=optimized --out=out/
+RUN ./waf configure --build-profile=release --out=out/
 RUN ./waf build
 
 RUN cd / && \
@@ -42,7 +42,7 @@ RUN apt-get update && \
   apt-get clean
 
 WORKDIR /ns3
-COPY --from=builder /ns3/out/src/fd-net-device/*optimized /ns3/out/src/fd-net-device/*debug /ns3/src/fd-net-device/
+COPY --from=builder /ns3/out/src/fd-net-device/* /ns3/src/fd-net-device/
 COPY --from=builder /ns3/out/scratch/*/* /ns3/scratch/
 COPY --from=builder /ns3/out/lib/ /ns3/lib
 COPY --from=builder /wait-for-it-quic/wait-for-it-quic /usr/bin
-- 
GitLab