Created
January 20, 2010 09:09
-
-
Save naoyat/281717 to your computer and use it in GitHub Desktop.
try to build mosh-0.2.0 (but 32-bit) on Snow Leopard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ru mosh-0.2.0-orig/configure mosh-0.2.0/configure | |
--- mosh-0.2.0-orig/configure 2009-08-07 17:12:14.000000000 +0900 | |
+++ mosh-0.2.0/configure 2010-01-20 17:55:49.000000000 +0900 | |
@@ -4616,6 +4616,9 @@ | |
else | |
MOSH_OPTS="$MOSH_INTEL_OPTS -march=$host_cpu" | |
fi | |
+ CFLAGS="$CFLAGS -arch i386" | |
+ CXXFLAGS="$CXXFLAGS -arch i386" | |
+ LDFLAGS="$LDFLAGS -arch i386" | |
;; | |
*linux*) | |
diff -ru mosh-0.2.0-orig/gc-7.1/configure mosh-0.2.0/gc-7.1/configure | |
--- mosh-0.2.0-orig/gc-7.1/configure 2009-06-12 12:50:13.000000000 +0900 | |
+++ mosh-0.2.0/gc-7.1/configure 2010-01-20 18:00:18.000000000 +0900 | |
@@ -4915,6 +4915,8 @@ | |
;; | |
*-*-darwin*) | |
THREADS=posix | |
+ CFLAGS="-arch i386 -D_XOPEN_SOURCE=1" | |
+ LDFLAGS="-arch i386" | |
{ $as_echo "$as_me:$LINENO: result: $THREADS" >&5 | |
$as_echo "$THREADS" >&6; } | |
;; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment