mirror of
https://github.com/tailix/libkernaux.git
synced 2025-04-07 17:32:45 -04:00
Main: "-ffreestanding" implies "-fno-builtin"
This commit is contained in:
parent
e007fceef7
commit
c1c4fc6c46
11 changed files with 8 additions and 11 deletions
|
@ -159,7 +159,7 @@ without it in `$PATH`:
|
|||
AR="$(which i386-elf-ar)" \
|
||||
CC="$(which i386-elf-gcc)" \
|
||||
RANLIB="$(which i386-elf-ranlib)" \
|
||||
CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
|
||||
CFLAGS='-ffreestanding -nostdlib -fno-stack-protector'
|
||||
```
|
||||
|
||||
You can see the following messages. It's
|
||||
|
|
|
@ -14,6 +14,6 @@ export AR="$CROSS-ar"
|
|||
export CC="$CROSS-gcc"
|
||||
export RANLIB="$CROSS-ranlib"
|
||||
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-stack-protector'
|
||||
|
||||
"$REPO/configure" --host="$HOST" --prefix="$PREFIX" --disable-pic --with-libc
|
||||
|
|
|
@ -14,6 +14,6 @@ export AR="$CROSS-ar"
|
|||
export CC="$CROSS-gcc"
|
||||
export RANLIB="$CROSS-ranlib"
|
||||
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-stack-protector'
|
||||
|
||||
"$REPO/configure" --host="$HOST" --prefix="$PREFIX" --disable-pic --with-libc
|
||||
|
|
|
@ -14,6 +14,6 @@ export AR="$CROSS-ar"
|
|||
export CC="$CROSS-gcc"
|
||||
export RANLIB="$CROSS-ranlib"
|
||||
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector -mabi=sysv -mcmodel=kernel -mno-80387 -mno-red-zone'
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-stack-protector -mabi=sysv -mcmodel=kernel -mno-80387 -mno-red-zone'
|
||||
|
||||
"$REPO/configure" --host="$HOST" --prefix="$PREFIX" --disable-pic --with-libc
|
||||
|
|
|
@ -14,6 +14,6 @@ export AR="$TARGET-ar"
|
|||
export CC="$TARGET-gcc"
|
||||
export RANLIB="$TARGET-ranlib"
|
||||
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-stack-protector'
|
||||
|
||||
"$REPO/configure" --host="$HOST" --prefix="$PREFIX" --disable-pic --with-libc
|
||||
|
|
|
@ -14,6 +14,6 @@ export AR="$TARGET-ar"
|
|||
export CC="$TARGET-gcc"
|
||||
export RANLIB="$TARGET-ranlib"
|
||||
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-stack-protector'
|
||||
|
||||
"$REPO/configure" --host="$HOST" --prefix="$PREFIX" --disable-pic --with-libc
|
||||
|
|
|
@ -14,6 +14,6 @@ export AR="$TARGET-ar"
|
|||
export CC="$TARGET-gcc"
|
||||
export RANLIB="$TARGET-ranlib"
|
||||
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector -mabi=sysv -mcmodel=kernel -mno-80387 -mno-red-zone'
|
||||
export CFLAGS='-ffreestanding -nostdlib -fno-stack-protector -mabi=sysv -mcmodel=kernel -mno-80387 -mno-red-zone'
|
||||
|
||||
"$REPO/configure" --host="$HOST" --prefix="$PREFIX" --disable-pic --with-libc
|
||||
|
|
|
@ -186,7 +186,7 @@ AS_IF([test "$with_libc_strnlen" != yes], [AC_SUBST([comment_line_libc_strnlen],
|
|||
|
||||
|
||||
AC_DEFUN([do_enable_pic], [CFLAGS+=' -fpic '])
|
||||
AC_DEFUN([do_disable_pic], [CFLAGS+=' -fno-pic'])
|
||||
AC_DEFUN([do_disable_pic], [CFLAGS+=' -fno-pic '])
|
||||
AS_IF([test "$enable_pic" != no], do_enable_pic, do_disable_pic)
|
||||
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ CFLAGS = \
|
|||
-Wextra \
|
||||
-Werror \
|
||||
-ffreestanding \
|
||||
-fno-builtin \
|
||||
-fno-stack-protector \
|
||||
-I$(LIBKERNAUX_SRC)/include \
|
||||
-I$(LIBKERNAUX_BUILD)/include
|
||||
|
|
|
@ -45,7 +45,6 @@ CFLAGS = \
|
|||
-Wextra \
|
||||
-Werror \
|
||||
-ffreestanding \
|
||||
-fno-builtin \
|
||||
-fno-stack-protector \
|
||||
-I$(LIBKERNAUX_SRC)/include \
|
||||
-I$(LIBKERNAUX_BUILD)/include
|
||||
|
|
|
@ -43,7 +43,6 @@ CFLAGS = \
|
|||
-Wextra \
|
||||
-Werror \
|
||||
-ffreestanding \
|
||||
-fno-builtin \
|
||||
-fno-stack-protector \
|
||||
-fno-pic \
|
||||
-I$(LIBKERNAUX_SRC)/include \
|
||||
|
|
Loading…
Add table
Reference in a new issue