From 6caae0bcb183fabd2bcf65c2ae2346b4e2d5cbe7 Mon Sep 17 00:00:00 2001 From: Antonin ENFRUN Date: Sun, 11 May 2014 21:28:26 +0200 Subject: unix: Create __bss_start and _end symbols for Mach-O targets. It's a hack, but can't find a cleaner way to do it. --- unix/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'unix/Makefile') diff --git a/unix/Makefile b/unix/Makefile index 05cdfb5b3..ba2180fe5 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -19,8 +19,8 @@ CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwin) - LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-map,$@.map -else + LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-map,$@.map,-order_file,order.def + else LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-Map=$@.map,--cref endif @@ -70,6 +70,11 @@ SRC_C = \ modsocket.c \ $(SRC_MOD) +# Must be the last file +ifeq ($(UNAME_S),Darwin) +SRC_C += seg_helpers.c +endif + OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o)) include ../py/mkrules.mk -- cgit v1.2.3