fs-uae icon indicating copy to clipboard operation
fs-uae copied to clipboard

Cross compilation support

Open ypsvlq opened this issue 3 years ago • 2 comments

gen/ makes cross compiling fs-uae awkward, it's possible but requires steps along the lines of

if [ "$CROSS_BUILD" ]; then
	post_configure() {
		make $makejobs \
		 CC=$CC_FOR_BUILD CFLAGS=$CFLAGS_FOR_BUILD \
		 CXX=$CXX_FOR_BUILD CXXFLAGS=$CXXFLAGS_FOR_BUILD \
		 LIBS= GLIB_LIBS= LIBMPEG2_LIBS= OPENAL_LIBS= \
		 OPENGL_LIBS= PNG_LIBS= SDL2_LIBS= X11_LIBS= ZLIB_LIBS= \
		 gen/blit.h gen/blitfunc.cpp gen/blitfunc.h gen/blittable.cpp \
		 gen/compemu.cpp gen/cpudefs.cpp gen/cpuemu_0.cpp \
		 gen/linetoscr.cpp

		rm src/readcpu.o gen/cpudefs.o
		make $makejobs src/readcpu.o gen/cpudefs.o
		touch gen/*
	}
fi

Ideally the build system would support building genlinetoscr, gencpu, etc. with a different compiler.

ypsvlq avatar May 10 '22 07:05 ypsvlq

Ideally, yes, but I don't know of any easy way to do this with autoconf/automake.

FrodeSolheim avatar Jul 25 '22 13:07 FrodeSolheim