question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] how to enforce fPIC transitively

See original GitHub issue

Hi!

I’d like to make sure all of my dependencies have -fPIC enabled, on the os’s where that’s available. I can’t just set the *:fPIC option to true, because not all of the dependencies have an fPIC option.

I know that there are fixes underway for how fPIC is propagated: #8185, but in the interim, I think it would be something like this:

def requirements(self):
    for dep in dependencies:
        if dep has option fPIC:
            set dep fPIC option to True

Obviously that’s mostly pseudocode, but if someone has an example like this, it would be very helpful

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
blackencinocommented, Mar 15, 2021

that’s awesome, thank you for the rapid response.

1reaction
blackencinocommented, Mar 15, 2021

I was able to use this, not sure if this is the recommended way, but seems to do the trick:

class USDConan(ConanFile):
    # ...
    default_options = {
        # etc ... ,
        "*:fPIC": True
    }
    # etc ...

Is this correct?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Free, Prior and Informed Consent | Indigenous Peoples
This toolkit is designed to provide guidance to FAO staff on how to implement the FPIC process. In contains both informative and operational...
Read more >
gcc - Linking with dynamic library with dependencies
It is useful to force a library to be found in a given directory. The -unresolved-symbol approach looks much better. Thanks again. gcc...
Read more >
Consultation and free, prior and informed consent (FPIC)
The Declaration on the Rights of Indigenous Peoples requires States to consult and cooperate in good faith with the indigenous peoples concerned through ......
Read more >
GNU make
Searching other directories for source files. • Phony Targets, Using a target that is not a real file's name. • Force Targets, You...
Read more >
(PDF) Large doubly transitive orbits on a line
plane of order n and let & be a 2-transitive. G-orbit ... on & (for example pick B = diag(fl0, 1) where BQ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found