Is it possible for gcc to have g2c compiled with -fPIC and call it libg2c-pic.a? I have a package which needs that. Debian was doing this in gcc 2.x: gcc-2.95 (2.95.4.ds4-0.010826) unstable; urgency=low * Build libg2c.a with -fPIC -DPIC and name the result libg2c-pic.a. Link with this library to avoid linking with non-pic code. Use this library when building dynamically loadable objects (python modules, gimp plugins, ...), which need to be linked against g2c or a library which is linked against g2c (i.e. lapack). Packages needing '-lg2c-pic' must have a build dependency on 'g77-2.95 (>= 1:2.95.4-0.010826). -- Matthias Klose <doko@debian.org> Sun, 26 Aug 2001 13:59:03 +0200
could you break out the patch from the deb which would resolve this ? just attach it here and we can merge it into the gcc-2.x ebuild
Please forgive my ignorance, but what is the drawback to just building this library (or any library for that matter) with -fPIC?
Never got the patch for this, so I'm assuming its not needed. Reopen with a patch if you want it added.