• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/chocolate-doom/0004-configure-Switch-to-pkg-config-macros.patch
Rodrigo RebelloRodrigo Rebello committed 7a960de66f702 Mar 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
-                [--with-libsamplerate was given, but test for libsamplerate failed])
 
1
From 3163bf87d7b955d08dedd5ebaccb1b2a86ffdcb9 Mon Sep 17 00:00:00 2001
2
From: Simon Howard <fraggle@soulsphere.org>
3
Date: Thu, 25 Feb 2016 22:55:04 -0500
4
Subject: [PATCH] configure: Switch to pkg-config macros.
5
​
6
All dependency libraries install pkg-config .pc files nowadays, which
7
makes the process of looking them up a lot simpler. Get rid of the SDL
8
workaround macro as it's not needed.
9
​
10
[Backported from upstream commit 3163bf87d7b955d08dedd5ebaccb1b2a86ffdcb9.
11
Fixes static linking issues with SDL_mixer.]
12
​
13
Signed-off-by: Rodrigo Rebello <rprebello@gmail.com>
14
---
15
 configure.ac                    | 117 ++++++++++++++--------------------------
16
 opl/examples/Makefile.am        |   2 +-
17
 src/Makefile.am                 |   7 ++-
18
 textscreen/Makefile.am          |   2 +-
19
 textscreen/examples/Makefile.am |   2 +-
20
 5 files changed, 49 insertions(+), 81 deletions(-)
21
​
22
diff --git a/configure.ac b/configure.ac
23
index 7b03485..48f83ef 100644
24
--- a/configure.ac
25
+++ b/configure.ac
26
@@ -33,89 +33,54 @@ then
27
         CFLAGS="-O$OPT_LEVEL -g $WARNINGS $orig_CFLAGS"
28
 fi
29
 
30
-dnl Search for SDL ...
31
-
32
-AM_PATH_SDL(1.1.3)
33
-
34
-# Add the SDL compiler flags to the default compiler flag variables. 
35
-# It is important to do this now, before checking for headers and
36
-# library functions.  The reason being that on Windows, sdl-config
37
-# sets the -mno-cygwin compiler option in order to generate MinGW 
38
-# executables.  If we don't do this now, we might end up discovering
39
-# header files that are not actually available to us when we come
40
-# to compile.
41
-
42
-CFLAGS="$CFLAGS $SDL_CFLAGS"
43
-LDFLAGS="$LDFLAGS $SDL_LIBS"
44
-
45
-# On some platforms, SDL renames main() to SDL_main() using a #define,
46
-# so that its own main, stored in the SDLmain library, can be run first.
47
-# Unfortunately, this causes problems for autoconf, which builds
48
-# test programs to probe the system.  All library/header/symbol checks
49
-# must be run in this block, that performs a workaround for the problem.
50
-
51
-AC_SDL_MAIN_WORKAROUND([
52
-
53
-    # Check for SDL_mixer.
54
-
55
-    AC_CHECK_LIB(SDL_mixer,Mix_LoadMUS,[
56
-        SDLMIXER_LIBS="$SDLMIXER_LIBS -lSDL_mixer"
57
-    ],[
58
-        echo "*** Could not find SDL_mixer.  Please install it."
59
-        exit -1
60
-    ])
61
-
62
-    # Check for SDL_net.
63
-
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.