From cd2b151228ceffbda9a7dcf22c2d9ae32fcd21a6 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Tue, 4 Mar 2025 13:55:50 -0500 Subject: [PATCH] makepkg update Add -march=native and -mtune=native Remove debug builds --- makepkg.conf | 10 ++++++++++ packager.conf | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 makepkg.conf delete mode 100644 packager.conf diff --git a/makepkg.conf b/makepkg.conf new file mode 100644 index 0000000..db1bc49 --- /dev/null +++ b/makepkg.conf @@ -0,0 +1,10 @@ +PACKAGER="Balakrishnan Balasubramanian " + +for index in "${!OPTIONS[@]}"; do + if [[ "${OPTIONS[$index]}" = *debug ]]; then + OPTIONS["$index"]="!debug" + fi +done + +CFLAGS="$CFLAGS -march=native -mtune=native" +CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" diff --git a/packager.conf b/packager.conf deleted file mode 100644 index 85a4286..0000000 --- a/packager.conf +++ /dev/null @@ -1 +0,0 @@ -PACKAGER="Balakrishnan Balasubramanian "