mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
rules.mk: Add -shared to rule for shared lib creation
This commit is contained in:
parent
52530bc52e
commit
5954d49b10
1 changed files with 2 additions and 1 deletions
|
|
@ -35,10 +35,11 @@ uic_%.cpp: %.h %.ui
|
||||||
|
|
||||||
ifeq ($(LIBTYPE),shared)
|
ifeq ($(LIBTYPE),shared)
|
||||||
lib%.so: %.o $(LIB_SO)
|
lib%.so: %.o $(LIB_SO)
|
||||||
|
$(CC) -shared $(LDFLAGS) $^ -o $@
|
||||||
else
|
else
|
||||||
lib%.so: %.o
|
lib%.so: %.o
|
||||||
|
$(CC) $(LDFLAGS) $^ -o $@
|
||||||
endif
|
endif
|
||||||
$(CC) $< $(LDFLAGS) -o $@
|
|
||||||
|
|
||||||
version.ldscript:
|
version.ldscript:
|
||||||
$(MOD_SCRIPT_DIR)/make_version_script.sh $(BINARY_VERSION) > $@
|
$(MOD_SCRIPT_DIR)/make_version_script.sh $(BINARY_VERSION) > $@
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue