Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

rewrite pkgconfig for protobuf #173

Open
springmeyer opened this issue Aug 7, 2014 · 0 comments
Open

rewrite pkgconfig for protobuf #173

springmeyer opened this issue Aug 7, 2014 · 0 comments

Comments

@springmeyer
Copy link
Member

need some way to avoid incorrect absolute paths from being carried through to SDKs.

Note to self: workaround for node-mapnik:

diff --git a/binding.gyp b/binding.gyp
index 20d712d..d2ef0d9 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -122,12 +122,12 @@
             'cflags_cc!': ['-fno-rtti', '-fno-exceptions'],
             'cflags_cc' : [
                 '<!@(mapnik-config --cflags)',
-                '<!@(pkg-config protobuf --cflags)'
+                '<!@(pkg-config protobuf --cflags --define-variable=prefix=/foo)'
             ],
             'libraries':[
                 '<!@(mapnik-config --libs)',
                 '<!@(mapnik-config --ldflags)',
-                '<!@(pkg-config protobuf --libs-only-L)',
+                '<!@(pkg-config protobuf --libs-only-L --define-variable=prefix=/foo)',
                 '-lprotobuf-lite'
             ],
             'conditions': [
@@ -140,11 +140,11 @@
             'xcode_settings': {
               'OTHER_CPLUSPLUSFLAGS':[
                   '<!@(mapnik-config --cflags)',
-                  '<!@(pkg-config protobuf --cflags)'
+                  '<!@(pkg-config protobuf --cflags --define-variable=prefix=/foo)'
               ],
               'OTHER_CFLAGS':[
                   '<!@(mapnik-config --cflags)',
-                  '<!@(pkg-config protobuf --cflags)'
+                  '<!@(pkg-config protobuf --cflags --define-variable=prefix=/foo)'
               ],
               'GCC_ENABLE_CPP_RTTI': 'YES',
               'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant