Make cross-building slightly more reliable
[pspp] / doc / automake.mk
index b9fe0edc903b4491908e954a5f4eb17dcdc5152e..def0dbf395218a9aa634c7af75b648b39d130f8f 100644 (file)
@@ -190,7 +190,7 @@ pspp_output = native/utilities/pspp-output
 
 native/Makefile:
        $(MKDIR_P) native
-       (cd native && $(top_srcdir)/configure --without-gui)
+       (cd native && $(abs_top_srcdir)/configure --host=$$build --without-gui)
 
 native/gl/libgl.la: native/Makefile
        (cd native && flock --verbose $(top_builddir)/native-lock $(MAKE) gl/libgl.la)