Permalink
Browse files

Makefile: fix strip on OSX

  • Loading branch information...
1 parent a168536 commit 9724f0836b086ad00daa5fea642a985cc967f912 @esmil committed Jun 14, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 Makefile
View
@@ -11,9 +11,10 @@ LUA_PATH = $(shell $(PKGCONFIG) --variable=path lem)
LUA_CPATH = $(shell $(PKGCONFIG) --variable=cpath lem)
ifeq ($(OS),Darwin)
-SHARED = -dynamiclib -Wl,-undefined,dynamic_lookup
+SHARED = -dynamiclib -Wl,-undefined,dynamic_lookup
+STRIP_ARGS = -u -r
else
-SHARED = -shared
+SHARED = -shared
endif
programs = dbus.so
@@ -42,7 +43,7 @@ allinone:
%-strip: %
@echo ' STRIP $<'
- @$(STRIP) $<
+ @$(STRIP) $(STRIP_ARGS) $<
strip: $(programs:%=%-strip)

0 comments on commit 9724f08

Please sign in to comment.