http://bugzilla.rpmfusion.org/show_bug.cgi?id=1943
--- Comment #16 from Richard <hobbes1069(a)gmail.com> 2011-10-19 18:11:41 ---
I've got it using optflags but I ran into a compile issue:
g++ -o butt FLTK/Fl_ILM216.o FLTK/Fl_Native_File_Chooser.o FLTK/fl_callbacks.o
FLTK/fl_funcs.o FLTK/flgui.o butt.o cfg.o icecast.o lame_encode.o parseconfig.o
port_audio.o ringbuffer.o shoutcast.o sockfuncs.o strfuncs.o timer.o util.o
vorbis_encode.o wav_header.o -lmp3lame -L/usr/local/lib `` -lportaudio
/usr/lib64/libfltk_images.a -lpng -lz -ljpeg /usr/lib64/libfltk.a -lXft
-lXinerama -lpthread -ldl -lm -lXext -lX11 -lvorbisenc -lvorbis -logg -lmp3lame
/usr/bin/ld: /usr/lib64/libfltk.a(fl_font.o): undefined reference to symbol
'FcPatternAddDouble'
/usr/bin/ld: note: 'FcPatternAddDouble' is defined in DSO
/usr/lib64/libfontconfig.so.1 so try adding it to the linker command line
It looks like fltk is referencing a symbol in libfontconfig.so but it's not
being linked against. I fixed both problems like this:
%build
CXXFLAGS='%{optflags}'
export CXXFLAGS
LDFLAGS='-lfontconfig'
export LDFLAGS
./configure --prefix /usr
make %{?_smp_mflags}
Now I also had to patch 'configure'. The to the "Too many arguments"
problem
was that the shell variables we're not quoted, so the full CXXFLAGS was
interpreted as multiple arguments instead of one.
I'll attach my updated spec and patch momentarily.
Richard
--
Configure bugmail:
http://bugzilla.rpmfusion.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.