FS#43106 - [fltk] fltk-config does not work due to missing .a files in /usr/lib

Attached to Project: Arch Linux
Opened by Thomas Martin Klein (nikin) - Saturday, 13 December 2014, 19:59 GMT
Last edited by Eric Belanger (Snowman) - Wednesday, 31 December 2014, 21:30 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
fltk-config does not work due to missing .a files in /usr/lib

Additional info:
* package version(s)
fltk-1.3.3-3
* config and/or log files etc.


Steps to reproduce:
1: get a minimal fltk based project.
2: run fltk-config --compile <sourcename>.cxx
This task depends upon

Closed by  Eric Belanger (Snowman)
Wednesday, 31 December 2014, 21:30 GMT
Reason for closing:  Fixed
Additional comments about closing:  Should be fixed in fltk-1.3.3-4
Comment by Doug Newgard (Scimmia) - Sunday, 14 December 2014, 16:56 GMT
Looks like a redux of  FS#38276 
Comment by Thomas Martin Klein (nikin) - Sunday, 14 December 2014, 19:08 GMT
To some extent.

$ fltk-config --libs
/usr/lib/libfltk.so

but as far as i checked the package code there is a .patch doing that.
witch looks a bit odd.. as it changes things in the scripts string output.
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/fltk-config-dynlibs.patch?h=packages/fltk

Whereas the $LDSTATIC variable used to compile stuff

$CXX $ARCHFLAGS $includes $CXXFLAGS $debug -o "$prog" "$compile" $LDSTATIC || exit 1

Still is built like:
LDSTATIC="$libdir/libfltk.a $LDLIBS"

If i understand the workings of the code correctly
Comment by Thomas Martin Klein (nikin) - Sunday, 14 December 2014, 22:17 GMT
OK. some more info here.

g++ `fltk-config --cxxflags` main.cpp `fltk-config --ldflags` -o test

works as a solution to build stuff. Allas programs like codeblocks rely by default on fltk-config --ldstaticflags to work as it should
So there is that option to patch fltk-config someway to omit static stuff when --compile is used. But better yet static linking should be possible.

Loading...