Opened 4 years ago

#1783 new defect

vorbis.pc.in assumes -lm, this should be detected first and then added if needed

Reported by: scottmc Owned by: monty@…
Milestone: Component: Vorbis Core - libvorbis
Version: trunk Severity: normal
Keywords: Cc:
Parent Tickets:

Description

Not all platforms require -lm, so instead of assuming -lm is needed, a check should be done and then add it in if needed. Perhaps change vorbis.pc.in to use ${libm}, default it to "" and change it to "-lm" There is an AC_CHECK_LIB (m, cos, VORBIS_LIBS="-lm", VORBIS_LIBS="") in confirgure.ac, so perhaps it's as simple as changing the -lm in vorbis.pc.in to ${vobis_libs} or something like that.

Subtickets (add)

Change History (0)

Note: See TracTickets for help on using tickets.