Skip to content

Commit fda53d9

Browse files
GNUmakefile: Fix building problems with legacy software on Mac OS X (#26649)
1 parent 6385b78 commit fda53d9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

GNUmakefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ MAC := 1
4141
TCCOS := macos
4242
ifeq ($(shell expr $(shell uname -r | cut -d. -f1) \<= 15), 1)
4343
LEGACY := 1
44-
CFLAGS += "-I$(LEGACYLIBS)/include/LegacySupport"
44+
CFLAGS += -I$(LEGACYLIBS)/include/LegacySupport
45+
LDFLAGS += -L$(LEGACYLIBS)/lib
46+
LDFLAGS += -lMacportsLegacySupport
47+
VFLAGS += -cc $(CC)
48+
VFLAGS += -cflags "$(CFLAGS)"
49+
VFLAGS += -ldflags -L$(LEGACYLIBS)/lib
50+
VFLAGS += -ldflags -lMacportsLegacySupport
4551
endif
4652
endif
4753

0 commit comments

Comments
 (0)