Changeset 21608


Ignore:
Timestamp:
2010-05-28T21:48:05+02:00 (6 years ago)
Author:
nbd
Message:

grub: compile fixes for Mac OS X (based on patches by Jukka Ylitalo)

Location:
trunk/package/grub
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/grub/Makefile

    r21353 r21608  
    4545CONFIGURE_VARS += $(MY_CONFIGURE_VARS) 
    4646 
     47ifeq ($(HOST_OS),Darwin) 
     48  HOST_CFLAGS += $(call host-cc-option,-m32) 
     49  HOST_CFLAGS += $(call host-cc-option,-fnested-functions) 
     50endif 
     51 
    4752HOST_CFLAGS += $(call host-cc-option,-fno-stack-protector) 
    4853HOST_CFLAGS += $(call host-cc-option,-U_FORTIFY_SOURCE) 
     
    5358 
    5459HOST_CONFIGURE_VARS += $(MY_CONFIGURE_VARS) 
     60 
     61define Host/Configure 
     62        (cd $(HOST_BUILD_DIR); aclocal && autoconf && automake) 
     63        $(call Host/Configure/Default) 
     64endef 
     65 
     66ifeq ($(HOST_OS),Darwin) 
     67  define Host/Compile 
     68        $(MAKE) -C $(HOST_BUILD_DIR)/lib 
     69        $(MAKE) -C $(HOST_BUILD_DIR)/stage2 libgrub.a 
     70        $(MAKE) -C $(HOST_BUILD_DIR)/grub 
     71  endef 
     72  define Host/Install 
     73        $(MAKE) -C $(HOST_BUILD_DIR)/grub install 
     74  endef 
     75endif 
    5576 
    5677define Build/InstallDev 
Note: See TracChangeset for help on using the changeset viewer.