Skip to content

Instantly share code, notes, and snippets.

@tochiz
Created July 24, 2011 01:43
Show Gist options
  • Save tochiz/1102095 to your computer and use it in GitHub Desktop.
Save tochiz/1102095 to your computer and use it in GitHub Desktop.
gentoo prefix bootstrap_prefix.sh for testing
--- Downloads/bootstrap-prefix.sh 2011-07-24 10:35:03.000000000 +0900
+++ bootstrap-prefix.sh 2011-07-24 10:30:44.000000000 +0900
@@ -161,6 +161,24 @@
HOSTCC='gcc -m64'
"
;;
+ i*86-apple-darwin11)
+ profile="${PORTDIR}/profiles/prefix/darwin/macos/10.7/x86"
+ ldflags_make_defaults="LDFLAGS=\"-Wl,-search_paths_first -L${ROOT}/usr/lib -L${ROOT}/lib\""
+ extra_make_globals="
+CC='gcc -m32'
+CXX='g++ -m32'
+HOSTCC='gcc -m32'
+"
+ ;;
+ x86_64-apple-darwin11)
+ profile="${PORTDIR}/profiles/prefix/darwin/macos/10.7/x64"
+ ldflags_make_defaults="LDFLAGS=\"-Wl,-search_paths_first -L${ROOT}/usr/lib -L${ROOT}/lib\""
+ extra_make_globals="
+CC='gcc -m64'
+CXX='g++ -m64'
+HOSTCC='gcc -m64'
+"
+ ;;
i*86-pc-linux-gnu)
profile="${PORTDIR}/profiles/prefix/linux/x86"
ldflags_make_defaults="LDFLAGS=\"-L${ROOT}/usr/lib -Wl,-rpath=${ROOT}/usr/lib -L${ROOT}/lib -Wl,-rpath=${ROOT}/lib\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment