mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
macOS: fix broken .pc file for libmtp
This has bugged me forever. The existing file creates a warning on every single compiler invocation. I really need to figure out if I can get this fixed upstream. But while I'm at it, I submitted it here to make it easier to spot warnings in the build output. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
325addf385
commit
81ed23583e
2 changed files with 14 additions and 0 deletions
|
@ -438,6 +438,7 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
|
|||
|
||||
./${SRC_DIR}/scripts/get-dep-lib.sh single . libmtp
|
||||
pushd libmtp
|
||||
patch -p1 < ../${SRC_DIR}/scripts/libmtp.patch
|
||||
echo 'N' | NOCONFIGURE="1" bash ./autogen.sh
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
|
13
scripts/libmtp.patch
Normal file
13
scripts/libmtp.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/libmtp.pc.in b/libmtp.pc.in
|
||||
index 93c7bbf..ff817e1 100644
|
||||
--- a/libmtp.pc.in
|
||||
+++ b/libmtp.pc.in
|
||||
@@ -10,6 +10,6 @@ Description: libmtp is a library for accessing Media Transfer Protocol devices
|
||||
Version: @VERSION@
|
||||
Requires.private: @LIBUSB_REQUIRES@
|
||||
Conflicts:
|
||||
-Libs: -L${libdir} -lmtp
|
||||
+Libs: -L${libdir} -lmtp @OSFLAGS@
|
||||
Libs.private: @LIBS@
|
||||
-Cflags: -I${includedir} @OSFLAGS@
|
||||
+Cflags: -I${includedir}
|
Loading…
Add table
Reference in a new issue