Added optimization to Makefile.

This commit is contained in:
Jesse Smith 2019-08-29 17:16:28 -03:00
parent efd0dc47f1
commit a3da0ecf84
2 changed files with 5 additions and 2 deletions

View File

@ -22,6 +22,8 @@ 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
===============

View File

@ -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)