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.
#debug=-g
CFLAGS="
+-static
$debug
"
CFLAGS=
if test $mes_libc = mes; then
CFLAGS="
+-static
-nostdinc
-nostdlib
-fno-builtin
(nostdinc)
(nostdlib)
(preprocess (single-char #\E))
+ (static)
(std (value #t))
(output (single-char #\o) (value #t))
(optimize (single-char #\O) (value #t))
Ignored for GCC compatibility
-fno-builtin
+ -no-pie
-nostdinc
+ -static
Environment variables:
(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)