mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-14 08:50:53 +00:00
Smarter libgme ldflag detection
This commit is contained in:
parent
e099d2aaf2
commit
ce32413633
1 changed files with 7 additions and 0 deletions
7
debian/rules
vendored
7
debian/rules
vendored
|
@ -71,8 +71,15 @@ MENUFILE2 = title="$(TITLE)" command="/$(PKGDIR)/$(PACKAGE)"
|
||||||
export PKG_CONFIG_LIBDIR = /usr/lib/$(CROSS_COMPILE_HOST)/pkgconfig
|
export PKG_CONFIG_LIBDIR = /usr/lib/$(CROSS_COMPILE_HOST)/pkgconfig
|
||||||
BINDIR := $(DIR)/bin/Linux/Release
|
BINDIR := $(DIR)/bin/Linux/Release
|
||||||
LDFLAGS += "-Wl,-rpath=/usr/lib/$(CROSS_COMPILE_HOST)"
|
LDFLAGS += "-Wl,-rpath=/usr/lib/$(CROSS_COMPILE_HOST)"
|
||||||
|
|
||||||
# FIXME some libgme-dev packages don't use pkg-config yet, so include the linker flag ourselves
|
# FIXME some libgme-dev packages don't use pkg-config yet, so include the linker flag ourselves
|
||||||
|
PKG_CONFIG?=pkg-config
|
||||||
|
LIBGME_PKGCONFIG?=libgme
|
||||||
|
LIBGME_LDFLAGS?=$(shell $(PKG_CONFIG) $(LIBGME_PKGCONFIG) --libs)
|
||||||
|
|
||||||
|
ifeq ($(LIBGME_LDFLAGS),)
|
||||||
MAKEARGS += LIBGME_LDFLAGS=-lgme
|
MAKEARGS += LIBGME_LDFLAGS=-lgme
|
||||||
|
endif
|
||||||
|
|
||||||
build:
|
build:
|
||||||
$(MKDIR) $(BINDIR)/debug
|
$(MKDIR) $(BINDIR)/debug
|
||||||
|
|
Loading…
Reference in a new issue