summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpackaging/libslp-db-util.spec17
1 files changed, 4 insertions, 13 deletions
diff --git a/packaging/libslp-db-util.spec b/packaging/libslp-db-util.spec
index 3bdc14c..28ffe84 100755
--- a/packaging/libslp-db-util.spec
+++ b/packaging/libslp-db-util.spec
@@ -28,21 +28,12 @@ cp %{SOURCE1001} %{SOURCE1002} .
%build
-%ifarch aarch64
-export CFLAGS+="$CFLAGS -DDB_UTIL_ARCH_64"
-export CXXFLAGS+="$CXXFLAGS -DDB_UTIL_ARCH_64"
-export FFLAGS+="$FFLAGS -DDB_UTIL_ARCH_64"
+%ifarch aarch64 x86_64
+export CFLAGS+=" $CFLAGS -DDB_UTIL_ARCH_64 "
+export CXXFLAGS+=" $CXXFLAGS -DDB_UTIL_ARCH_64 "
+export FFLAGS+=" $FFLAGS -DDB_UTIL_ARCH_64 "
%endif
-%ifarch x86_64
-export CFLAGS+="$CFLAGS -DDB_UTIL_ARCH_64"
-export CXXFLAGS+="$CXXFLAGS -DDB_UTIL_ARCH_64"
-export FFLAGS+="$FFLAGS -DDB_UTIL_ARCH_64"
-%endif
-
-
-
-
%cmake .
make %{?_smp_mflags}