summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--overlays/udp2raw/package.nix2
-rw-r--r--overlays/udp2raw/udp2raw-makefile.patch15
2 files changed, 8 insertions, 9 deletions
diff --git a/overlays/udp2raw/package.nix b/overlays/udp2raw/package.nix
index ba9cdb20..a50d87d4 100644
--- a/overlays/udp2raw/package.nix
+++ b/overlays/udp2raw/package.nix
@@ -12,7 +12,7 @@ pkgsMusl.stdenv.mkDerivation rec {
12 patches = [ ./udp2raw-makefile.patch ]; 12 patches = [ ./udp2raw-makefile.patch ];
13 configurePhase = ""; 13 configurePhase = "";
14 buildPhase = '' 14 buildPhase = ''
15 make amd64 15 make amd64_hw_aes
16 ''; 16 '';
17 installPhase = '' 17 installPhase = ''
18 install -Dm755 udp2raw_amd64 $out/bin/udp2raw 18 install -Dm755 udp2raw_amd64 $out/bin/udp2raw
diff --git a/overlays/udp2raw/udp2raw-makefile.patch b/overlays/udp2raw/udp2raw-makefile.patch
index 80b39c6b..512c6f8e 100644
--- a/overlays/udp2raw/udp2raw-makefile.patch
+++ b/overlays/udp2raw/udp2raw-makefile.patch
@@ -2,12 +2,11 @@ diff --git a/makefile b/makefile
2index e758e68..16a3b23 100755 2index e758e68..16a3b23 100755
3--- a/makefile 3--- a/makefile
4+++ b/makefile 4+++ b/makefile
5@@ -53,7 +53,7 @@ mips24kc_le_asm_aes: git_version 5@@ -53,6 +53,6 @@ mips24kc_le_asm_aes: git_version
6 #bcm2708:
7 # ${cc_bcm2708} -o ${NAME}_bcm2708 -I. ${SOURCES} ${FLAGS} -lrt -static -O3
8 amd64:git_version 6 amd64:git_version
9- ${cc_local} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O3 7 ${cc_amd64} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O3
10+ ${CXX} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O3 8 amd64_hw_aes:git_version
11 9- ${cc_amd64} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O0 -fno-omit-frame-pointer -g
12 amd64_perf:git_version 10+ ${CXX} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O0 -fno-omit-frame-pointer -g
13 ${cc_local} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O0 -fno-omit-frame-pointer -g 11 x86:git_version
12 ${cc_x86} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O2 -lgcc_eh -ggdb