Permalink
Browse files

[osx/iosx] fixed build, remove read_only_relocs flag on linker, you o…

…nly need it for wacky asm code and it is not present for x86_64 gcc-4.2
  • Loading branch information...
davilla committed Oct 21, 2012
1 parent d617f38 commit 251a5b649c6e19d403d68af0e6b34ebbedd9ab20
@@ -12,7 +12,7 @@ all: $(LIB_SHARED)
$(LIB_SHARED): $(OBJS)
ifeq ($(findstring osx,$(ARCH)), osx)
$(CXX) $(LDFLAGS) -Wl,-alias_list,@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper_mach_alias \
- -bundle -undefined dynamic_lookup -read_only_relocs suppress -o $@ \
+ -bundle -undefined dynamic_lookup -o $@ \
@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o $(OBJS)
else
$(CXX) $(CFLAGS) $(LDFLAGS) -shared -g -o $(LIB_SHARED) $(OBJS)
@@ -12,7 +12,7 @@ all: $(LIB_SHARED)
$(LIB_SHARED): $(OBJS)
ifeq ($(findstring osx,$(ARCH)), osx)
$(CXX) $(LDFLAGS) -Wl,-alias_list,@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper_mach_alias \
- -bundle -undefined dynamic_lookup -read_only_relocs suppress -o $@ \
+ -bundle -undefined dynamic_lookup -o $@ \
@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o $(OBJS)
else
$(CXX) $(CFLAGS) $(LDFLAGS) -shared -g -o $(LIB_SHARED) $(OBJS)
@@ -12,7 +12,7 @@ all: $(LIB_SHARED)
$(LIB_SHARED): $(OBJS)
ifeq ($(findstring osx,$(ARCH)), osx)
$(CXX) $(LDFLAGS) -Wl,-alias_list,@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper_mach_alias \
- -bundle -undefined dynamic_lookup -read_only_relocs suppress -o $@ \
+ -bundle -undefined dynamic_lookup -o $@ \
@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o $(OBJS)
else
$(CXX) $(CFLAGS) $(LDFLAGS) -shared -g -o $(LIB_SHARED) $(OBJS)

0 comments on commit 251a5b6

Please sign in to comment.