[flashrom] [patch] OSX universal binaries

Mark Pustjens pustjens at dds.nl
Thu Sep 29 17:07:09 CEST 2011


Hi List,

The included patch will cause flashrom to be built as a universal binary 
on osx. Included architectures are i386 and x86_64.

Greetings/Groetjes

Mark Pustjens

-- 

Index: Makefile
===================================================================
--- Makefile	(revision 1450)
+++ Makefile	(working copy)
@@ -43,9 +43,9 @@
  STRIP_ARGS = -s
  endif
  ifeq ($(OS_ARCH), Darwin)
-CPPFLAGS += -I/opt/local/include -I/opt/local/include -I/usr/local/include
+CPPFLAGS += -arch i386 -arch x86_64 -I/opt/local/include -I/usr/local/include
  # DirectHW framework can be found in the DirectHW library.
-LDFLAGS += -framework IOKit -framework DirectHW -L/opt/local/lib -L/usr/local/lib
+LDFLAGS += -framework IOKit -framework DirectHW -L/usr/local/lib -arch i386 -arch x86_64
  endif
  ifeq ($(OS_ARCH), FreeBSD)
  CPPFLAGS += -I/usr/local/include
@@ -530,7 +530,7 @@
  TAROPTIONS = $(shell LC_ALL=C tar --version|grep -q GNU && echo "--owner=root --group=root")

  %.o: %.c .features
-	$(CC) -MMD $(CFLAGS) $(CPPFLAGS) $(FEATURE_CFLAGS) $(SVNDEF) -o $@ -c $<
+	$(CC) $(CFLAGS) $(CPPFLAGS) $(FEATURE_CFLAGS) $(SVNDEF) -o $@ -c $<

  # Make sure to add all names of generated binaries here.
  # This includes all frontends and libflashrom.




More information about the flashrom mailing list