File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 8989 path : dist
9090 - name : Build binaries
9191 env :
92- CXXFLAGS : " -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -O2 -static "
92+ CXXFLAGS : " -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -O2"
9393 run : |
9494 cat <<EOF > build.sh
9595 set -e
9898 tar -xf dist/*.tar.bz2
9999 rm -f dist/*
100100 cd patchelf-*
101- ./configure --prefix /patchelf
101+ ./configure --prefix /patchelf --with-static
102102 make check || (cat tests/test-suite.log; exit 1)
103103 make install-strip
104104 cd -
Original file line number Diff line number Diff line change @@ -41,5 +41,10 @@ AC_ARG_WITH([ubsan],
4141)
4242AM_CONDITIONAL([ WITH_UBSAN] , [ test x"$with_ubsan" = xyes] )
4343
44+ AC_ARG_WITH ( [ static] ,
45+ AS_HELP_STRING ( [ --with-static] , [ Build static binary] )
46+ )
47+ AM_CONDITIONAL([ WITH_STATIC] , [ test x"$with_static" = xyes] )
48+
4449AC_CONFIG_FILES ( [ Makefile src/Makefile tests/Makefile patchelf.spec] )
4550AC_OUTPUT
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ AM_CXXFLAGS += $(SAN_FLAGS)
1717endif
1818endif
1919
20+ if WITH_STATIC
21+ AM_CXXFLAGS += -static
22+ endif
23+
2024bin_PROGRAMS = patchelf
2125
2226patchelf_SOURCES = patchelf.cc elf.h patchelf.h
You can’t perform that action at this time.
0 commit comments