shithub: opusfile

Download patch

ref: ea2412ea27422d9c72c316804ff4d5eb7c100357
parent: c0c963e0e5e62027ff1c91cae49c1905fc7001bb
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Mon Sep 17 03:25:32 EDT 2012

Use --static with pkg-config.

This is needed to pick up -lm for libopus when it requires it.

--- a/unix/Makefile
+++ b/unix/Makefile
@@ -16,7 +16,7 @@
 # The location of include files.
 # Modify these to point to your Ogg and Vorbis include directories if they are
 #  not installed in a standard location.
-CINCLUDE = `pkg-config --cflags ogg opus`
+CINCLUDE = `pkg-config --cflags --static ogg opus`
 # These are gcc-only, but not actually critical.
 # Extra compilation flags.
 # You may get speed increases by including flags such as -O2 or -O3 or
@@ -31,7 +31,7 @@
 CFLAGS := -Wall $(CFLAGS)
 
 # Libraries to link with, and the location of library files.
-LIBS = `pkg-config --libs ogg opus`
+LIBS = `pkg-config --libs --static ogg opus`
 
 #TODO: tests
 FOO_LIBS =