Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Daniel Kahn Gillmor
Knot DNS Resolver
Commits
26d0d695
Commit
26d0d695
authored
Dec 10, 2015
by
Marek Vavruša
Browse files
build: set soname for ELF libraries with versioning
fixes #20
parent
67fa76e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
platform.mk
View file @
26d0d695
...
...
@@ -17,7 +17,8 @@ BINEXT :=
PLATFORM
=
Linux
ARCH
:=
$(
word
1,
$(
subst
-, ,
$(
shell
$(CC)
-dumpmachine
)))
# Library versioning flags (platform-specific)
SOVER
=
comma
:=
,
SOVER
=
$(
if
$(1)
,-Wl
$(comma)
-soname
$(comma)$(3)
$(
call
SOVER_EXT,
$(1)
))
# Library versioned extension (platform-specific)
SOVER_EXT
=
$(LIBEXT)
.
$(1)
ifeq
($(OS),Windows_NT)
...
...
@@ -88,7 +89,7 @@ $(2)/$(1)$(3): $$($(1)_OBJ) $$($(1)_DEPEND)
ifeq
($(4),-$(ARTYPE))
$(
call
quiet,AR,
$$
@
)
rcs
$$
@
$$
(
$(1)
_OBJ
)
else
$(
call
quiet,CCLD,
$$
@
)
$$
(
$(1)
_CFLAGS
)
$(BUILD_CFLAGS)
$$
(
$(1)
_OBJ
)
$(
call
SOVER,
$(7)
,
$(7)
)
-o
$$
@
$(4)
$$
(
$(1)
_LIBS
)
$(BUILD_LDFLAGS)
$$
(
$(1)
_LDFLAGS
)
$(
call
quiet,CCLD,
$$
@
)
$$
(
$(1)
_CFLAGS
)
$(BUILD_CFLAGS)
$$
(
$(1)
_OBJ
)
$(
call
SOVER,
$(7)
,
$(7)
,
$(1)
)
-o
$$
@
$(4)
$$
(
$(1)
_LIBS
)
$(BUILD_LDFLAGS)
$$
(
$(1)
_LDFLAGS
)
endif
# Additional rules
$(1)-clean
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment