Source: ogdi-dfsg
Version: 3.2.1+ds-1
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap
ogdi-dfsg fails to cross build from source, because it does not
propagate the correctly detected cross compiler from ./configure to
make, but rather hard codes gcc. The attached patch fixes that and makes
ogdi-dfsg cross build successfully. Please consider applying it.
Helmut
--- ogdi-dfsg-3.2.1+ds.orig/config/common.mak.in
+++ ogdi-dfsg-3.2.1+ds/config/common.mak.in
@@ -46,6 +46,8 @@
# Default definitions
#
+AUTOCONF_CC = @CC@
+
ifndef CFG
CFG = release
endif
--- ogdi-dfsg-3.2.1+ds.orig/config/unix.mak
+++ ogdi-dfsg-3.2.1+ds/config/unix.mak
@@ -22,9 +22,9 @@
#
# Standard tools
#
-CC = gcc -shared -fPIC
-LD = gcc
-SHLIB_LD = gcc -shared -fPIC
+CC = ${AUTOCONF_CC} -shared -fPIC
+LD = ${AUTOCONF_CC}
+SHLIB_LD = ${AUTOCONF_CC} -shared -fPIC
AR = ar cr
RM = rm
RMALL = rm -rf