Compare commits
No commits in common. "c10s" and "c9s" have entirely different histories.
@ -50,6 +50,24 @@ sed -i -e 's|$(PREFIX)/lib|%{_libdir}|g' src/Makefile
|
|||||||
sed -i -e 's|$(PREFIX)/include|%{_includedir}|g' src/Makefile
|
sed -i -e 's|$(PREFIX)/include|%{_includedir}|g' src/Makefile
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# c9s build system quickfix BEGIN
|
||||||
|
CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
|
||||||
|
export CFLAGS
|
||||||
|
CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
|
||||||
|
export CXXFLAGS
|
||||||
|
FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
|
||||||
|
export FFLAGS
|
||||||
|
FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
|
||||||
|
export FCFLAGS
|
||||||
|
LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 '
|
||||||
|
export LDFLAGS
|
||||||
|
LT_SYS_LIBRARY_PATH=/usr/lib64:
|
||||||
|
export LT_SYS_LIBRARY_PATH
|
||||||
|
CC=gcc
|
||||||
|
export CC
|
||||||
|
CXX=g++
|
||||||
|
export CXX
|
||||||
|
# c9s build system quickfix END
|
||||||
%make_build LDFLAGS="$LDFLAGS -lzstd"
|
%make_build LDFLAGS="$LDFLAGS -lzstd"
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user