From 9464f2b836c81feccd23d9ff6da99c1a598cbcd3 Mon Sep 17 00:00:00 2001
From: Diego Biurrun <diego@biurrun.de>
Date: Wed, 15 Nov 2006 01:36:16 +0000
Subject: [PATCH] Move BeOS extralibs handling into configure.

Originally committed as revision 7082 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 Makefile  | 4 ----
 configure | 4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 74f6ad22615..fd0dfd7c416 100644
--- a/Makefile
+++ b/Makefile
@@ -35,10 +35,6 @@ ALLPROGS=$(addsuffix $(EXESUF), $(BASENAMES))
 ALLPROGS_G=$(addsuffix _g$(EXESUF), $(BASENAMES))
 ALLMANPAGES=$(addsuffix .1, $(BASENAMES))
 
-ifeq ($(CONFIG_AUDIO_BEOS),yes)
-EXTRALIBS+=-lmedia -lbe
-endif
-
 ifeq ($(BUILD_SHARED),yes)
 DEP_LIBS=libavcodec/$(SLIBPREF)avcodec$(SLIBSUF) libavformat/$(SLIBPREF)avformat$(SLIBSUF)
 else
diff --git a/configure b/configure
index 41104a0a34d..bab60829c08 100755
--- a/configure
+++ b/configure
@@ -1540,6 +1540,10 @@ if enabled vhook; then
     check_ldflags -export-dynamic
 fi
 
+if enabled audio_beos; then
+    add_extralibs "-lmedia -lbe"
+fi
+
 ##########################################
 # imlib check
 
-- 
GitLab