Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit f92286b

Browse files
author
Ron
committed
Get rid of PC_LIBM
It only existed to not include -lm in the .pc for fixed point builds, but that is still needed since the float API is still enabled and will use at least lrint.
1 parent a9daf9f commit f92286b

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

configure.ac

-3
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ AS_IF([test "$enable_fixed_point" = "yes"],[
125125
],[
126126
enable_float="yes";
127127
PC_BUILD="floating-point"
128-
PC_LIBM="$LIBM"
129128
])
130129

131130
AM_CONDITIONAL([FIXED_POINT], [test "$enable_fixed_point" = "yes"])
@@ -145,7 +144,6 @@ AC_ARG_ENABLE([custom-modes],
145144
AS_IF([test "$enable_custom_modes" = "yes"],[
146145
AC_DEFINE([CUSTOM_MODES], [1], [Custom modes])
147146
PC_BUILD="$PC_BUILD, custom modes"
148-
PC_LIBM="$LIBM"
149147
])
150148

151149
AM_CONDITIONAL([CUSTOM_MODES], [test "$enable_custom_modes" = "yes"])
@@ -289,7 +287,6 @@ LIBS="$saved_LIBS"
289287
AC_CHECK_FUNCS([__malloc_hook])
290288

291289
AC_SUBST([PC_BUILD])
292-
AC_SUBST([PC_LIBM])
293290

294291

295292
AC_CONFIG_FILES([Makefile opus.pc opus-uninstalled.pc

opus-uninstalled.pc.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ Description: Opus IETF audio codec (not installed, @PC_BUILD@)
88
Version: @VERSION@
99
Requires:
1010
Conflicts:
11-
Libs: ${libdir}/libopus.a @PC_LIBM@
11+
Libs: ${libdir}/libopus.a @LIBM@
1212
Cflags: -I${pcfiledir}/@top_srcdir@/include

opus.pc.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ Version: @VERSION@
1212
Requires:
1313
Conflicts:
1414
Libs: -L${libdir} -lopus
15-
Libs.private: @PC_LIBM@
15+
Libs.private: @LIBM@
1616
Cflags: -I${includedir}/opus

0 commit comments

Comments
 (0)