Configurable optimization level for libbsc.

This commit is contained in:
Moinak Ghosh 2014-05-09 22:58:51 +05:30
parent 63509327e4
commit a6676698fa
2 changed files with 2 additions and 2 deletions

View file

@ -383,7 +383,7 @@ $(PROGOBJS): $(PROGSRCS) $(PROGHDRS)
$(COMPILE) $(GEN_OPT) $(LOOP_OPTFLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@ $(COMPILE) $(GEN_OPT) $(LOOP_OPTFLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
$(LIBBSCLIB): $(LIBBSCLIB):
(cd $(LIBBSCDIR); make CC=$(GPP) OPTFLAGS="@SSE_OPT_FLAGS@ @USE_CLANG_AS@") (cd $(LIBBSCDIR); make CC=$(GPP) OPTFLAGS="-O3 @SSE_OPT_FLAGS@ @USE_CLANG_AS@")
$(LIB): $(OBJS) $(LIBBSCLIB) $(LIB): $(OBJS) $(LIBBSCLIB)
$(LINK.LIB) -Wl,-soname$(LIB).$(LIBVER) -o $(LIB).$(LIBVER) $(OBJS) $(LDLIBS) $(LINK.LIB) -Wl,-soname$(LIB).$(LIBVER) -o $(LIB).$(LIBVER) $(OBJS) $(LDLIBS)

View file

@ -24,7 +24,7 @@ CFLAGS = -g -Wall -fPIC
CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
# Comment out CFLAGS line below to disable optimizations # Comment out CFLAGS line below to disable optimizations
CFLAGS += -O2 -fomit-frame-pointer -fstrict-aliasing -ftree-vectorize $(OPTFLAGS) CFLAGS += -fomit-frame-pointer -fstrict-aliasing -ftree-vectorize $(OPTFLAGS)
# Comment out CFLAGS line below to disable OpenMP optimizations # Comment out CFLAGS line below to disable OpenMP optimizations
CFLAGS += -fopenmp -DLIBBSC_OPENMP_SUPPORT CFLAGS += -fopenmp -DLIBBSC_OPENMP_SUPPORT