28 lines
769 B
Plaintext
28 lines
769 B
Plaintext
--- lexilla/src/makefile.orig 2020-05-31 23:08:11 UTC
|
|
+++ lexilla/src/makefile
|
|
@@ -35,13 +35,13 @@ else
|
|
BASE_FLAGS += -fvisibility=hidden
|
|
endif
|
|
|
|
-LEXILLA=$(DIR_BIN)/$(SHARED_NAME).$(SHAREDEXTENSION)
|
|
+SONAME=$(SHARED_NAME).$(SHAREDEXTENSION)
|
|
+LEXILLA=$(DIR_BIN)/$(SONAME)
|
|
LIBLEXILLA=$(DIR_BIN)/liblexilla.a
|
|
|
|
BASE_FLAGS += --std=c++17
|
|
|
|
ifdef CLANG
|
|
-CXX = clang++
|
|
ifdef windir
|
|
# Clang on Win32 uses MSVC headers so will complain about strcpy without this
|
|
DEFINES += -D_CRT_SECURE_NO_DEPRECATE=1
|
|
@@ -119,7 +119,7 @@ LEXILLA_OBJS=\
|
|
$(LEXERS:.cxx=.o)
|
|
|
|
$(LEXILLA): $(LEXILLA_OBJS) $(VERSION_RESOURCE)
|
|
- $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
|
|
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -Wl,-soname,$(SONAME) -o $@
|
|
|
|
$(LIBLEXILLA): $(LEXILLA_OBJS)
|
|
$(AR) rc $@ $^
|