Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 374363
Collapse All | Expand All

(-)libpri-1.4.12/Makefile.orig (-14 / +6 lines)
Lines 90-96 Link Here
90
	rose_qsig_mwi.lo \
90
	rose_qsig_mwi.lo \
91
	rose_qsig_name.lo \
91
	rose_qsig_name.lo \
92
	version.lo
92
	version.lo
93
CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC $(ALERTING) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
93
CFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes -g -fPIC $(ALERTING) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
94
INSTALL_PREFIX=$(DESTDIR)
94
INSTALL_PREFIX=$(DESTDIR)
95
INSTALL_BASE=/usr
95
INSTALL_BASE=/usr
96
LIBDIR=$(INSTALL_PREFIX)$(INSTALL_BASE)/lib
96
LIBDIR=$(INSTALL_PREFIX)$(INSTALL_BASE)/lib
Lines 124-143 Link Here
124
124
125
PRIVERSION:=$(shell GREP=$(GREP) AWK=$(AWK) build_tools/make_version .)
125
PRIVERSION:=$(shell GREP=$(GREP) AWK=$(AWK) build_tools/make_version .)
126
126
127
#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
127
ifneq ($(CODE_COVERAGE),)
128
#This works for even old (2.96) versions of gcc and provides a small boost either way.
128
  LIBPRI_OPT=
129
#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesnt support it.
129
  COVERAGE_CFLAGS=-ftest-coverage -fprofile-arcs
130
ifeq ($(PROC),sparc64)
130
  COVERAGE_LDFLAGS=-ftest-coverage -fprofile-arcs
131
PROC=ultrasparc
132
LIBPRI_OPT = -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8
133
else
131
else
134
  ifneq ($(CODE_COVERAGE),)
132
  LIBPRI_OPT=
135
    LIBPRI_OPT=
136
    COVERAGE_CFLAGS=-ftest-coverage -fprofile-arcs
137
    COVERAGE_LDFLAGS=-ftest-coverage -fprofile-arcs
138
  else
139
    LIBPRI_OPT=-O2
140
  endif
141
endif
133
endif
142
134
143
ifeq ($(CPUARCH),i686)
135
ifeq ($(CPUARCH),i686)

Return to bug 374363