22 lines
825 B
Diff
22 lines
825 B
Diff
--- Makefile.orig 2018-03-03 17:18:18.362557053 -0700
|
|
+++ Makefile 2018-03-03 17:18:49.778455568 -0700
|
|
@@ -48,7 +48,7 @@ ARCHFLAGS := $(ARCHFLAGS)
|
|
|
|
OPTFLAGS ?= -g -O
|
|
|
|
-CFLAGS += -Wall -Wno-unused-function -Wno-write-strings -Wno-sign-compare $(ARCHFLAGS)
|
|
+CFLAGS += -Wno-unused-function $(OPTFLAGS) $(ARCHFLAGS) -Isrc
|
|
ifneq ($(findstring arm,$(shell uname -m)),)
|
|
CFLAGS += -DABC_MEMALIGN=4
|
|
endif
|
|
@@ -211,7 +211,9 @@ lib$(PROG).a: $(LIBOBJ)
|
|
|
|
lib$(PROG).so: $(LIBOBJ)
|
|
@echo "$(MSG_PREFIX)\`\` Linking:" $(notdir $@)
|
|
- $(VERBOSE)$(CXX) -shared -o $@ $^ $(LIBS)
|
|
+ $(VERBOSE)$(CXX) -shared -Wl,-h,lib$(PROG).so.0 -o lib$(PROG).so.0.0.0 $^ $(LIBS)
|
|
+ $(VERBOSE)ln -s lib$(PROG).so.0.0.0 lib$(PROG).so.0
|
|
+ $(VERBOSE)ln -s lib$(PROG).so.0 $@
|
|
|
|
docs:
|
|
@echo "$(MSG_PREFIX)\`\` Building documentation." $(notdir $@)
|