Commit 5d011ad3 authored by Christophe Massiot's avatar Christophe Massiot

* Enhanced --with-tuning

* Fixed a nasty segfault
parent 19868f14
...@@ -225,20 +225,25 @@ endif ...@@ -225,20 +225,25 @@ endif
endif endif
endif endif
# Optimizations for x86 familiy
ifneq (,$(findstring 86,$(ARCH)))
CFLAGS += -mcpu=$(TUNING)
endif
# Optimizations for PowerPC
ifneq (,$(findstring powerpc,$(ARCH))) ifneq (,$(findstring powerpc,$(ARCH)))
# Optimizations for PowerPC
CFLAGS += -mmultiple -mhard-float -mstring -mcpu=powerpc CFLAGS += -mmultiple -mhard-float -mstring -mcpu=powerpc
ifneq (,$(TUNING))
CFLAGS += -mtune=$(TUNING) CFLAGS += -mtune=$(TUNING)
endif endif
else
# Optimizations for Sparc
ifneq (,$(findstring sparc,$(ARCH))) ifneq (,$(findstring sparc,$(ARCH)))
# Optimizations for Sparc
CFLAGS += -mhard-float CFLAGS += -mhard-float
ifneq (,$(TUNING))
CFLAGS += -mcpu=$(TUNING)
endif
else
# Generic optimizations
ifneq (,$(TUNING))
CFLAGS += -mcpu=$(TUNING)
endif
endif
endif endif
#end of optimisations #end of optimisations
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_ps.c: PS demux and packet management * input_ps.c: PS demux and packet management
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input_ps.c,v 1.36 2001/10/02 16:46:59 massiot Exp $ * $Id: input_ps.c,v 1.37 2001/10/03 14:41:08 massiot Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* Cyril Deguet <asmax@via.ecp.fr> * Cyril Deguet <asmax@via.ecp.fr>
...@@ -401,7 +401,6 @@ static void PSEnd( input_thread_t * p_input ) ...@@ -401,7 +401,6 @@ static void PSEnd( input_thread_t * p_input )
#undef p_packet_cache #undef p_packet_cache
free( p_input->p_method_data ); free( p_input->p_method_data );
free( p_input->p_plugin_data );
} }
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment