Bug 708185 - fltk-config --ldflags need only return -lfltk
Summary: fltk-config --ldflags need only return -lfltk
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: fltk
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Adam Tkac
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 708334 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-26 21:29 UTC by Orion Poplawski
Modified: 2013-04-30 23:49 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-27 12:37:13 UTC
Type: ---


Attachments (Terms of Use)

Description Orion Poplawski 2011-05-26 21:29:51 UTC
Description of problem:

fltk 1.1:
# fltk-config --ldflags:
-lfltk
# fltk-config --ldflags --use-gl
-lfltk_gl -lGLU -lGL -lfltk

fltk 1.3:
$ fltk-config --ldflags
-lfltk -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11
$ fltk-config --ldflags --use-gl
-lfltk_gl -lGLU -lGL -lfltk -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11

Really need only be:
$ fltk-config --ldflags
-lfltk
$ fltk-config --ldflags --use-gl
-lfltk_gl

As I understand it,  when linking to fltk you need only specify -lfltk_gl or -lfltk, other deps are brought along automatically.  Adding extra libs only adds unneeded deps and are only needed when static linking.

Also as it stands packages building against fltk can get:

/usr/bin/ld: cannot find -lXinerama

because fltk-devel does not require libXinerama-devel.  But again, I believe it is not necessary to specify the extra libraries.

Version-Release number of selected component (if applicable):
1.3.0-0.1.rc5.fc16

Comment 1 Adam Tkac 2011-05-27 07:44:40 UTC
I will fix this issue.

Comment 2 Adam Tkac 2011-05-27 10:38:39 UTC
*** Bug 708334 has been marked as a duplicate of this bug. ***

Comment 3 Adam Tkac 2011-05-27 11:46:31 UTC
(In reply to comment #0)
> Description of problem:
> 
> fltk 1.1:
> # fltk-config --ldflags:
> -lfltk
> # fltk-config --ldflags --use-gl
> -lfltk_gl -lGLU -lGL -lfltk
> 
> fltk 1.3:
> $ fltk-config --ldflags
> -lfltk -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11
> $ fltk-config --ldflags --use-gl
> -lfltk_gl -lGLU -lGL -lfltk -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl
> -lm -lX11
> 
> Really need only be:
> $ fltk-config --ldflags
> -lfltk
> $ fltk-config --ldflags --use-gl
> -lfltk_gl
> 
> As I understand it,  when linking to fltk you need only specify -lfltk_gl or
> -lfltk, other deps are brought along automatically.  Adding extra libs only
> adds unneeded deps and are only needed when static linking.

Right you are, deps should be picked up automatically.

Comment 4 Adam Tkac 2011-05-27 12:37:13 UTC
fltk-1.3.0-0.2.rc5.fc16 should be fixed. If issue is still present, please reopen this ticket. Thanks for the report!


Note You need to log in before you can comment on or make changes to this bug.