| [ Return to Bugs & Features | Roadmap 1.3 | Post Text | Post File | SVN ⇄ GIT | Prev | Next ]
STR #3492
Application: | FLTK Library |
Status: | 5 - New |
Priority: | 1 - Request for Enhancement, e.g. asking for a feature |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Config Files |
Summary: | fltk-config shouldn't report its own dependencies |
Version: | 1.3-feature |
Created By: | yurivict |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post Text ]
|
#1 | yurivict 10:10 Aug 30, 2018 |
| Currently fltk-config reports all of its dependencies:
$ fltk-config --use-gl --use-images --ldflags -L/usr/local/lib -lm -Wl,-rpath,/usr/local/lib -fstack-protector -lfltk_images -lpng -lz -ljpeg -lfltk_gl -lGLU -lGL -lfltk -lXrender -lXcursor -lXfixes -lXext -lXft -lfontconfig -lXinerama -lpthread -lm -lX11
This causes executables of dependent projects to link to all fltk's dependencies as well, when this isn't needed.
The particular adverse consequence that this causes is that dependent packages now need these dependencies added. For example, FreeBSD ports have 'make stage-qa' command that checks consistency of dependencies, and it prints warnings that all these packages need to be declared as dependencies.
Other packages in the sime situation don't report their dependencies: $ pkg-config --libs poppler -L/usr/local/lib -lpoppler
I found this problem in the FreeBSD port games/crashtest.
fltk-1.3.4 | |
|
#2 | AlbrechtS 11:29 Aug 30, 2018 |
| Given your example above: what do you think would be the expected (correct) output?
And what would be the expected output of:
$ fltk-config --use-gl --use-images --ldstaticflags | |
|
#3 | yurivict 18:06 Aug 30, 2018 |
| $ fltk-config --use-gl --use-images --ldstaticflags should return all dependencies because they all should be supplied to the static link. | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |