[mobile-broadband-provider-info] pc: remove bogus cflags bits
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mobile-broadband-provider-info] pc: remove bogus cflags bits
- Date: Thu, 14 Oct 2010 21:25:08 +0000 (UTC)
commit 4402d249507dcd106a58afbf7f98df306b4e3a5c
Author: Dan Williams <dcbw redhat com>
Date: Thu Oct 14 16:26:38 2010 -0500
pc: remove bogus cflags bits
mbpi isn't a C library, and path escaping was causing problems
for stuff. So fix that up. Now, programs that want to get the
path to the database should:
1) put this in configure.ac:
dnl Check for mobile broadband provider database
MBPI_DATABASE_PATH=`$PKG_CONFIG --variable=database`
AC_SUBST(MBPI_DATABASE_PATH)
2) and this in the Makefile.am where they want to use the path:
-DMOBILE_BROADBAND_PROVIDER_INFO=\""$(MBPI_DATABASE_PATH)"\"
and then they can use MOBILE_BROADBAND_PROVIDER_INFO as an
argument to open(2) or whatever.
mobile-broadband-provider-info.pc.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mobile-broadband-provider-info.pc.in b/mobile-broadband-provider-info.pc.in
index adb989f..51cd0fd 100644
--- a/mobile-broadband-provider-info.pc.in
+++ b/mobile-broadband-provider-info.pc.in
@@ -10,4 +10,4 @@ Name: mobile-broadband-provider-info
Description: Mobile Broadband Service Provider Information Database
Requires:
Version: @VERSION@
-Cflags: -DMOBILE_BROADBAND_PROVIDER_INFO='"${database}"'
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]