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

rewrite pkgconfig for protobuf #173

@springmeyer

Description

@springmeyer

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions