Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use -fPIC rather than -fpic #16

Closed
onitake opened this issue Mar 13, 2019 · 5 comments
Closed

Use -fPIC rather than -fpic #16

onitake opened this issue Mar 13, 2019 · 5 comments

Comments

@onitake
Copy link

onitake commented Mar 13, 2019

Due to fine implementation differences between -fpic and -fPIC on certain CPU architectures, the decoder library currently fails to build on Debian sparc64: https://buildd.debian.org/status/fetch.php?pkg=libopencsd&arch=sparc64&ver=0.10.1-1&stamp=1552450383&raw=0

Since Debian builds packages on all supported architectures by default and other packages depend on libopencsd, this has certain unpleasant consequences. A possible fix would be to remove those dependencies for sparc64, but it would be much cleaner to fix the build script instead.

Is it possible to change the compiler flags from -fpic to -fPIC here or is there a specific reason why -fpic is used?

@glaubitz
Copy link

I have just tested this on sparc64 and can confirm that replacing -fpic with -fPIC fixes the issue for me.

@mikel-armbb
Copy link
Contributor

mikel-armbb commented Mar 13, 2019 via email

@wookey
Copy link

wookey commented Mar 15, 2019

Cheers for reporting this upstream Adrian. As we are in freeze and this isn't RC I won't upload a fix to debian yet (although I've just done one). I'll wait for 0.11 and upload that in due course.

@mikel-armbb
Copy link
Contributor

Requested change implemented on release v0.11.1

Thanks

Mike

@onitake
Copy link
Author

onitake commented Mar 15, 2019

Thanks a lot, @mikel-armbb !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants