[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] config.sh: -fno-pic



* Manche Distributionen halten die Zeit wohl für gekommen, -fpic zum
  Default zu erheben. Für týndur ist das eine eher doofe Idee, deshalb
  sollten wir es mit -fno-pic abschalten.

Signed-off-by: Max Reitz <max@xxxxxxxxxx>
---
 config.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/config.sh b/config.sh
index 259df3b..d6f1286 100644
--- a/config.sh
+++ b/config.sh
@@ -35,8 +35,8 @@ if [ "$LOST_ARCH" == "amd64" ]; then
     LOST_TOOLS_AR=$COMPILER_PREFIX"ar"
     LOST_TOOLS_AS=$COMPILER_PREFIX"as -64"
     LOST_TOOLS_LD=$COMPILER_PREFIX"ld -m elf_x86_64"
-    LOST_TOOLS_GCC=$COMPILER_PREFIX"gcc -m64 -g -c -fno-stack-protector -nostdinc -fno-leading-underscore -fno-omit-frame-pointer -Wall -fno-strict-aliasing -O0 -std=gnu11 -I . -iquote ."
-    LOST_TOOLS_GPP=$COMPILER_PREFIX"g++ -m64 -g -c -fno-stack-protector -fno-leading-underscore -fno-omit-frame-pointer -Wall -fno-strict-aliasing -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-use-cxa-atexit -O0"
+    LOST_TOOLS_GCC=$COMPILER_PREFIX"gcc -m64 -g -c -fno-stack-protector -nostdinc -fno-leading-underscore -fno-omit-frame-pointer -Wall -fno-strict-aliasing -fno-pic -O0 -std=gnu11 -I . -iquote ."
+    LOST_TOOLS_GPP=$COMPILER_PREFIX"g++ -m64 -g -c -fno-stack-protector -fno-leading-underscore -fno-omit-frame-pointer -Wall -fno-strict-aliasing -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-use-cxa-atexit -fno-pic -O0"
     LOST_TOOLS_OBJCOPY=$COMPILER_PREFIX"objcopy -B i386:x86-64"
     LOST_TOOLS_STRIP=$COMPILER_PREFIX"strip -F elf64-x86-64"
 else
@@ -45,8 +45,8 @@ else
     LOST_TOOLS_AR=$COMPILER_PREFIX"ar"
     LOST_TOOLS_AS=$COMPILER_PREFIX"as -32"
     LOST_TOOLS_LD=$COMPILER_PREFIX"ld -m elf_i386"
-    LOST_TOOLS_GCC=$COMPILER_PREFIX"gcc -m32 -g -c -fno-stack-protector -nostdinc -fno-leading-underscore -fno-omit-frame-pointer -Wall -Werror -Wstrict-prototypes -fno-strict-aliasing -std=gnu11 -O2 -fno-builtin -I ."
-    LOST_TOOLS_GPP=$COMPILER_PREFIX"g++ -m32 -g -c -fno-stack-protector -fno-leading-underscore -fno-omit-frame-pointer -Wall -fno-strict-aliasing -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-use-cxa-atexit -O0"
+    LOST_TOOLS_GCC=$COMPILER_PREFIX"gcc -m32 -g -c -fno-stack-protector -nostdinc -fno-leading-underscore -fno-omit-frame-pointer -Wall -Werror -Wstrict-prototypes -fno-strict-aliasing -fno-pic -std=gnu11 -O2 -fno-builtin -I ."
+    LOST_TOOLS_GPP=$COMPILER_PREFIX"g++ -m32 -g -c -fno-stack-protector -fno-leading-underscore -fno-omit-frame-pointer -Wall -fno-strict-aliasing -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-use-cxa-atexit -fno-pic -O0"
     LOST_TOOLS_OBJCOPY=$COMPILER_PREFIX"objcopy -B i386:i386"
     LOST_TOOLS_STRIP=$COMPILER_PREFIX"strip -F elf32-i386"
 fi
-- 
2.6.3