build: Handle gcc with --pie-by-default.
This fixes upgrading to debian-hurd-20190220.img. * build-aux/build.sh.in (CFLAGS): Add -static. Fixes using gcc compiled with --pie-by-default * build-aux/check.sh.in (CFLAGS): Likewise. * module/mescc.scm (parse-opts): Ignore -no-pie, -static.
This commit is contained in:
parent
fca5f11dd4
commit
479bf10878
|
@ -52,6 +52,7 @@ debug=
|
|||
#debug=-g
|
||||
|
||||
CFLAGS="
|
||||
-static
|
||||
$debug
|
||||
"
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ fi
|
|||
CFLAGS=
|
||||
if test $mes_libc = mes; then
|
||||
CFLAGS="
|
||||
-static
|
||||
-nostdinc
|
||||
-nostdlib
|
||||
-fno-builtin
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
(nostdinc)
|
||||
(nostdlib)
|
||||
(preprocess (single-char #\E))
|
||||
(static)
|
||||
(std (value #t))
|
||||
(output (single-char #\o) (value #t))
|
||||
(optimize (single-char #\O) (value #t))
|
||||
|
@ -117,7 +118,9 @@ Usage: mescc [OPTION]... FILE...
|
|||
|
||||
Ignored for GCC compatibility
|
||||
-fno-builtin
|
||||
-no-pie
|
||||
-nostdinc
|
||||
-static
|
||||
|
||||
Environment variables:
|
||||
|
||||
|
@ -135,10 +138,12 @@ General help using GNU software: <http://gnu.org/gethelp/>
|
|||
(define (mescc:main args)
|
||||
(let* ((single-dash-options '("-dumpmachine"
|
||||
"-fno-builtin"
|
||||
"-no-pie"
|
||||
"-nodefaultlibs"
|
||||
"-nostartfiles"
|
||||
"-nostdinc"
|
||||
"-nostdlib"
|
||||
"-static"
|
||||
"-std"))
|
||||
(args (map (lambda (o)
|
||||
(if (member o single-dash-options) (string-append "-" o)
|
||||
|
|
Loading…
Reference in a new issue