Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 346573 | Differences between
and this patch

Collapse All | Expand All

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

Return to bug 346573