unzip: use more generic strip flag for cce (#46087)

* Use more generic strip flag for cce

* [@spackbot] updating style on behalf of etiennemlb

* Apply always
This commit is contained in:
etiennemlb 2024-08-30 19:57:24 +02:00 committed by GitHub
parent f88ca8cc1f
commit 1427735876
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View File

@ -22,6 +22,7 @@ class Unzip(MakefilePackage):
# clang and oneapi need this patch, likely others
# There is no problem with it on gcc, so make it a catch all
patch("configure-cflags.patch")
patch("strip.patch")
def get_make_args(self):
make_args = ["-f", join_path("unix", "Makefile")]
@ -31,7 +32,7 @@ def get_make_args(self):
cflags.append("-Wno-error=implicit-int")
cflags.append("-DLARGE_FILE_SUPPORT")
make_args.append(f"LOC=\"{' '.join(cflags)}\"")
make_args.append(f"LOC={' '.join(cflags)}")
return make_args
@property

View File

@ -0,0 +1,11 @@
--- spack-src/unix/configure 2024-08-23 14:21:34.822163922 +0200
+++ spack-src/unix/configure.patched 2024-08-23 14:27:24.862640828 +0200
@@ -17,7 +17,7 @@
IZ_BZIP2=${3}
CFLAGS="${CFLAGS} -I. -DUNIX"
LFLAGS1=""
-LFLAGS2="-s"
+LFLAGS2="-Wl,-s"
LN="ln -s"
CFLAGS_OPT=''