Skip to content

Add CXXFLAGS and LDFLAGS to python binding lhapdf.so

Alexander Puck Neuwirth requested to merge APN-Pucky/lhapdf:main into main

Gentoo QA gives me these warnings:

Messages for package sci-physics/lhapdf-6.5.3-r1:
* QA Notice: Files built without respecting CFLAGS have been detected
*  Please include the following list of files in your report:
* /usr/lib/python3.9/site-packages/lhapdf/lhapdf.so
* QA Notice: Files built without respecting LDFLAGS have been detected
*  Please include the following list of files in your report:
* /usr/lib/python3.9/site-packages/lhapdf/lhapdf.so

This PR adds @CXXFLAGS@ and @LDFLAGS@ to build.py.in to set proper (system-/user-)flags.

Is there a reason for omitting them or maybe I missed a better way to add them?

Cheers APN

Merge request reports