Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
apk-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
61
Issues
61
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
apk-tools
Commits
9cd57a8f
Commit
9cd57a8f
authored
Jul 27, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile: make it possible to override pkg-config via PKG_CONFIG
parent
79b53d4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/Makefile
src/Makefile
+4
-3
No files found.
src/Makefile
View file @
9cd57a8f
PKGDEPS
:=
openssl zlib
PKG_CONFIG
?=
pkg-config
# lua module
ifneq
($(LUAAPK),)
...
...
@@ -13,7 +14,7 @@ install-LUA_LIB-y := $(INSTALLDIR) $(DESTDIR)$(LUA_LIBDIR) \
$(INSTALL)
$
(
LUA_LIB-y
)
$(DESTDIR)$(LUA_LIBDIR)
endif
ifeq
($(shell
pkg-config
--print-errors --exists $(PKGDEPS) || echo fail),fail)
ifeq
($(shell
$(PKG_CONFIG)
--print-errors --exists $(PKGDEPS) || echo fail),fail)
$(error
Build
dependencies
are
not
met)
endif
...
...
@@ -55,9 +56,9 @@ LDFLAGS_apk.static := -static
LDFLAGS_apk
+=
-nopie
-L
$(obj)
LDFLAGS_apk_test
+=
-nopie
-L
$(obj)
CFLAGS_ALL
+=
$(
shell
pkg-config
--cflags
$(PKGDEPS)
)
CFLAGS_ALL
+=
$(
shell
$(PKG_CONFIG)
--cflags
$(PKGDEPS)
)
LIBS
:=
-Wl
,--as-needed
\
$(
shell
pkg-config
--libs
$(PKGDEPS)
)
\
$(
shell
$(PKG_CONFIG)
--libs
$(PKGDEPS)
)
\
-Wl
,--no-as-needed
$(obj)/apk
:
$(LIBAPK-y)
...
...
Write
Preview
Markdown
is supported
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