Hello,
I'm attempting to create and cross-build a package with a simple Makefile using pkg-config
to set linking options. I found a solution in theCrossBuildPackagingGuidelines wiki page:
In Makefile:
include /usr/share/dpkg/buildtools.mk
PKG_CONFIG?=pkg-config
LDLIBS += $(shell $(PKG_CONFIG) --libs <lib...>)
This works, but the include makes the upstream package (Makefile) non-portable (debian
specific). Is there a better way to accomplish this ?
Thanks
|