diff --git a/srcpkgs/ghostscript/template b/srcpkgs/ghostscript/template index 1b8f8273064..2e939ffdd5d 100644 --- a/srcpkgs/ghostscript/template +++ b/srcpkgs/ghostscript/template @@ -44,7 +44,10 @@ do_configure() { do_build() { if [ "$CROSS_BUILD" ]; then # Build host utils. - make CC=cc CCLD=cc CFLAGS=-Os base/genarch base/genconf base/echogs + cp -f Makefile Makefile.orig + sed "/GCFLAGS/s,${CFLAGS},,g" -i Makefile + make CC=cc CCLD=cc base/genarch base/genconf base/echogs + mv -f Makefile.orig Makefile mkdir -p obj/aux soobj/aux cp base/{echogs,genarch,genconf} obj/aux cp base/{echogs,genarch,genconf} soobj/aux