Skip to content

Settings FFLAGS breaks numpy.distutils Fortran compilation #163

@pv

Description

@pv

The following part in multibuild sets the FFLAGS etc. environment variables:
https://github.com/matthew-brett/multibuild/blob/devel/configure_build.sh#L32-L34

However, for numpy.distutils an environment variable with empty value is not the same thing as unset environment variable. Instead, the value of the environment variable fully overrides the default value.

In this case, setting empty FFLAGS removes -fPIC from numpy.distutils fortran compilation.
Moreover, numpy.distutils does not use the contents of FFLAGS in constructing the linker command line, so adding -Wl,-strip-all to FFLAGS has no effect --- numpy.distutils appears to only look at the contents of the LDFLAGS variable, cf MacPython/scipy-wheels#31

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