52 lines
1.6 KiB
Text
52 lines
1.6 KiB
Text
|
Index: configure
|
||
|
--- configure.orig
|
||
|
+++ configure
|
||
|
@@ -1,4 +1,4 @@
|
||
|
-#!/bin/bash
|
||
|
+#!/bin/sh
|
||
|
|
||
|
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
|
||
|
cat <<EOF
|
||
|
@@ -1323,10 +1323,6 @@ if [ "$pic" = "yes" ] ; then
|
||
|
[ $SYS = SunOS -a "$ARCH" = "X86" ] && SOFLAGS="$SOFLAGS -mimpure-text"
|
||
|
fi
|
||
|
|
||
|
-if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
|
||
|
- CFLAGS="$CFLAGS -fomit-frame-pointer"
|
||
|
-fi
|
||
|
-
|
||
|
if [ "$strip" = "yes" ]; then
|
||
|
LDFLAGS="$LDFLAGS -s"
|
||
|
fi
|
||
|
@@ -1335,11 +1331,11 @@ if [ "$debug" = "yes" ]; then
|
||
|
CFLAGS="-O1 -g $CFLAGS"
|
||
|
RCFLAGS="$RCFLAGS -DDEBUG"
|
||
|
else
|
||
|
- CFLAGS="-O3 -ffast-math $CFLAGS"
|
||
|
+ CFLAGS="-ffast-math $CFLAGS"
|
||
|
if [ "$lto" = "auto" ] && [ $compiler = GNU ] && cc_check "" "-flto" ; then
|
||
|
lto="yes"
|
||
|
CFLAGS="$CFLAGS -flto"
|
||
|
- LDFLAGS="$LDFLAGS -O3 -flto"
|
||
|
+ LDFLAGS="$LDFLAGS -flto"
|
||
|
fi
|
||
|
fi
|
||
|
[ "$lto" = "auto" ] && lto="no"
|
||
|
@@ -1571,7 +1567,6 @@ if [ "$cli" = "yes" ]; then
|
||
|
fi
|
||
|
|
||
|
if [ "$shared" = "yes" ]; then
|
||
|
- API=$(grep '#define X264_BUILD' < ${SRCPATH}/x264.h | cut -f 3 -d ' ')
|
||
|
if [ "$SYS" = "WINDOWS" -o "$SYS" = "CYGWIN" ]; then
|
||
|
echo "SONAME=libx264-$API.dll" >> config.mak
|
||
|
if [ $compiler_style = MS ]; then
|
||
|
@@ -1592,7 +1587,7 @@ if [ "$shared" = "yes" ]; then
|
||
|
else
|
||
|
echo "SOSUFFIX=so" >> config.mak
|
||
|
echo "SONAME=libx264.so.$API" >> config.mak
|
||
|
- echo "SOFLAGS=-shared -Wl,-soname,\$(SONAME) $SOFLAGS" >> config.mak
|
||
|
+ echo "SOFLAGS=-shared $SOFLAGS" >> config.mak
|
||
|
fi
|
||
|
echo 'default: lib-shared' >> config.mak
|
||
|
echo 'install: install-lib-shared' >> config.mak
|