packages/gmp/gmp-native: OSX/Darwin/gcc hack. Force gmp to not used assembly versions
authorHolger Freyther <zecke@selfish.org>
Sun, 6 Aug 2006 13:10:20 +0000 (13:10 +0000)
committerHolger Freyther <zecke@selfish.org>
Sun, 6 Aug 2006 13:10:20 +0000 (13:10 +0000)
    Set none as CPU to force GMP to not use 'optimized' assembly which
    does not compile with apple gcc (MacIntel).
    Messing with TARGET_SYS etc. messes with CFLAGS, PATH as well. We do
    not need to care for the CFLAGS for now, but we need to mess with the
    PATH.

packages/gmp/gmp-native_4.1.2.bb

index c8160ca..c3d36e0 100644 (file)
@@ -5,3 +5,19 @@ S = "${WORKDIR}/gmp-${PV}"
 
 inherit native
 
+# darwin 'hacks'
+EXTRA_OECONF_build-darwin = " --enable-shared "
+OLD_STAGING := "${STAGING_BINDIR}"
+OLD_TARGET  := "${TARGET_SYS}"
+OLD_HOST    := "${HOST_SYS}"
+OLD_BUILD   := "${BUILD_SYS}"
+
+PATH_prepend_build-darwin = "${OLD_STAGING}/${OLD_HOST}:${OLD_STAGING}:"
+
+TARGET_SYS_build-darwin   = "none-apple-darwin"
+HOST_SYS_build-darwin     = "none-apple-darwin"
+BUILD_SYS_build-darwin    = "none-apple-darwin"
+
+do_compile_append_build-darwin() {
+    oe_runmake check
+}