Added optimization to Makefile.
This commit is contained in:
parent
efd0dc47f1
commit
a3da0ecf84
|
@ -21,7 +21,9 @@ startpar 0.64
|
|||
|
||||
* Added -n flag which will prefix output from running jobs with the
|
||||
name of the executable being run.
|
||||
|
||||
|
||||
* Added optimization flag to startpar (-O2). Can
|
||||
be overridden by passing "OPT" variable to Makefile.
|
||||
|
||||
startpar 0.63
|
||||
===============
|
||||
|
|
3
Makefile
3
Makefile
|
@ -15,6 +15,7 @@ CXXSRCS = compiletest.cc
|
|||
HDRS = makeboot.h proc.h
|
||||
REST = COPYING Makefile startpar.1
|
||||
OBJS = $(SRCS:.c=.o) $(CXXSRCS:.cc=.o)
|
||||
OPT ?= -O2
|
||||
|
||||
STARTPAR := $(shell pwd)/startpar
|
||||
TARBALL = $(PACKAGE)-$(VERSION).tar.xz
|
||||
|
@ -25,7 +26,7 @@ ifneq ($(INC),)
|
|||
endif
|
||||
|
||||
CC ?= gcc
|
||||
CFLAGS = $(RPM_OPT_FLAGS) $(COPTS) -D_GNU_SOURCE $(INC) -pipe
|
||||
CFLAGS = $(RPM_OPT_FLAGS) $(COPTS) -D_GNU_SOURCE $(INC) -pipe $(OPT)
|
||||
|
||||
WARNINGS = -Wall -W -Wformat -Werror=format-security
|
||||
CFLAGS += $(WARNINGS)
|
||||
|
|
Loading…
Reference in New Issue