diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-06-04 18:49:07 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-06-04 18:49:07 +0000 |
commit | ea6adf579f55f6bfb00c68a18402a7464e716f76 (patch) | |
tree | 44f4d78a49b60913186efe776e89bf704646b4ee | |
parent | c46806bf74c2618daa398cb7c3e4b1c47509a105 (diff) | |
download | drakx-backup-do-not-use-ea6adf579f55f6bfb00c68a18402a7464e716f76.tar drakx-backup-do-not-use-ea6adf579f55f6bfb00c68a18402a7464e716f76.tar.gz drakx-backup-do-not-use-ea6adf579f55f6bfb00c68a18402a7464e716f76.tar.bz2 drakx-backup-do-not-use-ea6adf579f55f6bfb00c68a18402a7464e716f76.tar.xz drakx-backup-do-not-use-ea6adf579f55f6bfb00c68a18402a7464e716f76.zip |
add missing scripts
-rwxr-xr-x | mdk-stage1/dietlibc/findcflags.sh | 8 | ||||
-rwxr-xr-x | mdk-stage1/dietlibc/threadsafe.sh | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/findcflags.sh b/mdk-stage1/dietlibc/findcflags.sh new file mode 100755 index 000000000..8b8b3d74a --- /dev/null +++ b/mdk-stage1/dietlibc/findcflags.sh @@ -0,0 +1,8 @@ +#!/bin/sh +version=`${1:-gcc} -v 2>&1 |sed -n '/gcc version/ {s/gcc version //;p;}'` +case $version in + 2.9*) echo -march=i386 -Os -fomit-frame-pointer -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mpreferred-stack-boundary=2 ;; + 3.0*) echo -march=i386 -Os -fomit-frame-pointer -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mpreferred-stack-boundary=2 ;; + 3*) echo -Os -fomit-frame-pointer -falign-functions=0 -falign-jumps=0 -falign-loops=0 -mpreferred-stack-boundary=2;; + *) echo -O2 -pipe -fomit-frame-pointer ;; +esac diff --git a/mdk-stage1/dietlibc/threadsafe.sh b/mdk-stage1/dietlibc/threadsafe.sh new file mode 100755 index 000000000..67f6f6338 --- /dev/null +++ b/mdk-stage1/dietlibc/threadsafe.sh @@ -0,0 +1,5 @@ +#!/bin/sh +(gcc -E - << EOF | grep -q WANT_THREAD_SAFE) || echo libpthread/pthread_*.c +#include "dietfeatures.h" +WANT_THREAD_SAFE +EOF |