Giter VIP home page Giter VIP logo

Comments (3)

E5ten avatar E5ten commented on July 17, 2024

I can probably make a PR to fix this later when I'm at my computer, but just to note how I think it would be fixed, prefix and exec_prefix variables would be added to the .pc, and substitutions for each would be added to the sed used to generate the file. Then a check would be done to see if the LIBDIR/INCLUDEDIR start with PREFIX, and if they do, strip the leading prefix and prepend \${prefix} or exec_prefix accordingly, then use whatever shell variables were set to this in place of the make variables in the build rule.

from libudev-zero.

neheb avatar neheb commented on July 17, 2024

My basic solution https://github.com/openwrt/packages/blob/b443dda1f330a6b947d5dd287c4115a63713ba67/libs/libudev-zero/patches/010-pkgconfig.patch

Works well enough.

from libudev-zero.

E5ten avatar E5ten commented on July 17, 2024

It won't work if someone sets LIBDIR or INCLUDEDIR to a path not starting with PREFIX.

from libudev-zero.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.