mirror of
https://github.com/holub/mame
synced 2025-04-19 23:12:11 +03:00
Fix for non-standard OS X builds [Scott Michel]
This commit is contained in:
parent
6b663f66a7
commit
f31c069a53
15
makefile
15
makefile
@ -462,6 +462,19 @@ CCOMFLAGS += \
|
||||
-I$(SRC)/osd/$(OSD) \
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
# archiving flags
|
||||
#-------------------------------------------------
|
||||
# Default to something reasonable for all platforms
|
||||
ARFLAGS = -cr
|
||||
# Deal with macosx brain damage if COMMAND_MODE is in
|
||||
# the luser's environment:
|
||||
ifeq ($(TARGETOS),macosx)
|
||||
ifeq ($(COMMAND_MODE),"legacy")
|
||||
ARFLAGS = -crs
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
# linking flags
|
||||
@ -680,7 +693,7 @@ $(OBJ)/%.fh: $(SRC)/%.png $(PNG2BDC) $(FILE2STR)
|
||||
$(OBJ)/%.a:
|
||||
@echo Archiving $@...
|
||||
$(RM) $@
|
||||
$(AR) -cr $@ $^
|
||||
$(AR) $(ARFLAGS) $@ $^
|
||||
|
||||
ifeq ($(TARGETOS),macosx)
|
||||
$(OBJ)/%.o: $(SRC)/%.m | $(OSPREBUILD)
|
||||
|
Loading…
Reference in New Issue
Block a user