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:
parent
f88ca8cc1f
commit
1427735876
@ -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
|
||||
|
11
var/spack/repos/builtin/packages/unzip/strip.patch
Normal file
11
var/spack/repos/builtin/packages/unzip/strip.patch
Normal 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=''
|
Loading…
Reference in New Issue
Block a user