Ticket #262: pygobject-2.18.0-cross-generate-constants.patch
| File pygobject-2.18.0-cross-generate-constants.patch, 1.0 KB (added by pierrearinsal, 3 years ago) |
|---|
-
configure.ac
old new 214 214 215 215 fi 216 216 217 dnl Get the host compiler if cross-compiling 218 dnl 219 AM_CONDITIONAL(CROSS_COMPILING, [ test $cross_compiling = yes ]) 220 AC_MSG_CHECKING([for CC_FOR_BUILD]) 221 if test "x${CC_FOR_BUILD+set}" != "xset" ; then 222 if test "x$cross_compiling" = "xyes" ; then 223 CC_FOR_BUILD=${CC_FOR_BUILD-gcc} 224 else 225 CC_FOR_BUILD=${CC} 226 fi 227 fi 228 AC_MSG_RESULT([$CC_FOR_BUILD]) 229 AC_SUBST(CC_FOR_BUILD) 230 217 231 AC_CONFIG_FILES( 218 232 Makefile 219 233 pygobject-2.0.pc -
gobject/Makefile.am
old new 71 71 if PLATFORM_WIN32 72 72 _gobject_la_CFLAGS += -DPLATFORM_WIN32 73 73 endif 74 75 generate-constants$(EXEEXT): generate-constants.c 76 $(CC) $(generate_constants_CFLAGS) -E -o generate-constants.pre.c generate-constants.c 77 $(CC_FOR_BUILD) -o $@ generate-constants.pre.c 78 rm -f generate-constants.pre.c 79 74 80 75 81
