From ddc9b2008784bfd69d23530479347cb7a86b689d Mon Sep 17 00:00:00 2001 From: comex Date: Thu, 29 Jan 2015 02:00:17 -0500 Subject: misc. fixes --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2d10ec8..9a11bcb 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ CC := clang CXX := clang++ ARCH := -arch x86_64 -XCFLAGS := -O3 -Wall -Wextra -Werror -Ilib $(ARCH) +XCFLAGS := -g -O3 -Wall -Wextra -Werror -Ilib $(ARCH) LIB_LDFLAGS := -lobjc -dynamiclib -fvisibility=hidden -install_name /usr/lib/libsubstitute.0.dylib -dead_strip IOS_APP_LDFLAGS := -framework UIKit -framework Foundation -dead_strip ifneq (,$(IS_IOS)) @@ -79,6 +79,7 @@ LIB_OBJS := \ out/libsubstitute.dylib: $(LIB_OBJS) $(CC) -o $@ $(LIB_OBJS) $(LIB_LDFLAGS) + dsymutil $@ # The result of this is also checked into generated, just in case someone is # trying to build with some Linux compiler that doesn't support all the @@ -105,7 +106,7 @@ out/%.bin: out/%.o Makefile define define_test out/test-$(1): test/test-$(2).[cm]* $(HEADERS) $(GENERATED) Makefile out/libsubstitute.dylib - $(3) -g -o $$@ $$< -Ilib -Isubstrate -Lout -lsubstitute -dead_strip + $(3) -o $$@ $$< -Ilib -Isubstrate -Lout -lsubstitute -dead_strip install_name_tool -change /usr/lib/libsubstitute.0.dylib '@executable_path/libsubstitute.dylib' $$@ ifneq (,$(IS_IOS)) ldid -Sent.plist $$@ -- cgit v1.2.3