dhermes / bezier

Helper for Bézier Curves, Triangles, and Higher Order Objects
Apache License 2.0
255 stars 36 forks source link

Determine if possible to "lift" symbols from `libgfortran` into my object files #50

Closed dhermes closed 6 years ago

dhermes commented 6 years ago

I don't think it is, but it'd be nice to do that so that libbezier.a could be "complete" without any dependencies.

As a much less appealing alternative, I could also go out of my way to avoid using the libgfortran "standard library" (not sure what to call it?). Right now, very little of it is used:

$ git log -1 --pretty=%H
8078351ea7fe7ef72f035ecb5793351713d191cf
$
$ strings .nox/doctest/lib/python3.6/site-packages/bezier/lib/libbezier.a | \
> grep -i fort \
> | sort | uniq
_gfortran_internal_pack
_gfortran_internal_unpack
_gfortran_maxval_r8
_gfortran_minval_r8
GNU Fortran2008 5.4.0 20160609 -mtune=generic -march=x86-64 ...

For now, my "solution" to this is documenting the accidental transitive dependency (7779bee3b1b9043d2d6d51f881dd6515ff3cb55b and 8078351ea7fe7ef72f035ecb5793351713d191cf).

dhermes commented 6 years ago

Not worth keeping this open. auditwheel and delocate do a fine enough job and the native libraries doc explains how / what to link to in these situations (i.e. installed from a wheel).