summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg/patches/patch-configure
blob: 01c22f60f3a0175b524499bd256f891b21c00aa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$NetBSD: patch-configure,v 1.9 2010/04/02 11:19:40 jmmv Exp $

--- configure.orig	2009-06-10 22:50:53.000000000 +0200
+++ configure
@@ -1619,6 +1619,10 @@ case $target_os in
         add_cflags -D__EXTENSIONS__
         ;;
     netbsd)
+	if test "${subarch}" != "x86_32"; then
+	    LIBOBJFLAGS='$(PIC)'
+	    SHFLAGS='-shared'
+	fi
         oss_demuxer_extralibs="-lossaudio"
         oss_muxer_extralibs="-lossaudio"
         ;;
@@ -1632,6 +1636,8 @@ case $target_os in
     freebsd)
         disable need_memalign
         ;;
+    dragonfly)
+        ;;
     bsd/os)
         osextralibs="-lpoll -lgnugetopt"
         strip="strip -d"
@@ -1996,10 +2002,13 @@ enabled vis && add_cflags -mcpu=ultraspa
 
 # ---
 # big/little-endian test
-check_cc <<EOF || die "endian test failed"
-unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
+check_exec <<EOF || enable bigendian
+int main()
+{
+ long one = 1;
+ return !(*((char *)(&one)));
+}
 EOF
-od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
 
 # ---
 # check availability of some header files