[DVDnav-discuss] r880 - in trunk/libdvdnav: Makefile configure2
nicodvb
subversion at mplayerhq.hu
Wed Apr 18 00:04:32 CEST 2007
Author: nicodvb
Date: Wed Apr 18 00:04:32 2007
New Revision: 880
Modified:
trunk/libdvdnav/Makefile
trunk/libdvdnav/configure2
Log:
--disable-debug && --enable-debug
Modified: trunk/libdvdnav/Makefile
==============================================================================
--- trunk/libdvdnav/Makefile (original)
+++ trunk/libdvdnav/Makefile Wed Apr 18 00:04:32 2007
@@ -36,7 +36,7 @@ LIB = $(L).a
SHLIB = $(L).so
-CFLAGS += -g -Wall -funsigned-char
+CFLAGS += $(USEDEBUG) -Wall -funsigned-char
CFLAGS += -I$(CURDIR) -I$(SRC_PATH)/src -I$(SRC_PATH)/src/vm \
-I$(SRC_PATH)/src/dvdread
Modified: trunk/libdvdnav/configure2
==============================================================================
--- trunk/libdvdnav/configure2 (original)
+++ trunk/libdvdnav/configure2 Wed Apr 18 00:04:32 2007
@@ -32,6 +32,8 @@ show_help(){
echo " --disable-static do not build static libraries [default=no]"
echo " --enable-shared build shared libraries [default=no]"
echo " --disable-shared do not build shared libraries [default=yes]"
+ echo " --enable-debug compile with debug symbols [default=yes]"
+ echo " --disable-debug compile without debug symbols [default=no]"
echo "Advanced options (experts only):"
echo " --cc=CC use C compiler CC [$cc]"
echo " --make=MAKE use specified make [$make]"
@@ -47,6 +49,7 @@ SHARED=yes
STATIC=yes
PREFIX=/usr/local/
INSTALLSTRIP=-s
+USEDEBUG=-g
optimizations="-O3"
for opt do
@@ -80,6 +83,10 @@ for opt do
;;
--disable-opts) optimizations=""
;;
+ --disable-debug) USEDEBUG=""
+ ;;
+ --enable-debug) USEDEBUG="-g"
+ ;;
--help) show_help
;;
esac
@@ -106,6 +113,7 @@ MAKE=$make
CFLAGS=$optimizations $cflags
LDFLAGS=$ldflags
INSTALLSTRIP=$INSTALLSTRIP
+USEDEBUG=$USEDEBUG
SRC_PATH="$source_path"
SRC_PATH_BARE=$source_path
More information about the DVDnav-discuss
mailing list