Fix building on Mac OS X when using a SDK

This commit is contained in:
adam 2011-02-27 12:26:28 +00:00
parent db5e752052
commit 79d51900b1
2 changed files with 17 additions and 1 deletions

View file

@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.11 2010/12/20 20:51:36 adam Exp $
$NetBSD: distinfo,v 1.12 2011/02/27 12:26:28 adam Exp $
SHA1 (libspectrum-1.0.0.tar.gz) = 0d980069e14497e02f219b0ea7130e0e5698bdc1
RMD160 (libspectrum-1.0.0.tar.gz) = 3cfb1cef3f59490bb0f244feacbc237e94bbc0f1
Size (libspectrum-1.0.0.tar.gz) = 462552 bytes
SHA1 (patch-Makefile.in) = c8871a57a82bd65fdd46acac3e8feaa8cd950a35

View file

@ -0,0 +1,15 @@
$NetBSD: patch-Makefile.in,v 1.1 2011/02/27 12:26:28 adam Exp $
Pass CFLAGS when compiling make-perl.c
--- Makefile.in.orig 2011-02-27 12:21:02.000000000 +0000
+++ Makefile.in
@@ -966,7 +966,7 @@ uninstall-man: uninstall-man3
make-perl$(EXEEXT): $(srcdir)/make-perl.c config.h
- $(CC_FOR_BUILD) -I. -o $@ $<
+ $(CC_FOR_BUILD) $(CFLAGS) -I. -o $@ $<
libspectrum.h: libspectrum.h.in generate.pl snap_accessors.txt tape_accessors.txt config.h
@PERL@ -p generate.pl $(srcdir) $(srcdir)/libspectrum.h.in > $@.tmp && mv $@.tmp $@