]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-macros.patch
- updated
[packages/rpm.git] / rpm-macros.patch
CommitLineData
5b60995d 1diff -Nur rpm-4.4.6.orig/macros.in rpm-4.4.6.macros/macros.in
2--- rpm-4.4.6.orig/macros.in 2006-08-05 20:52:48.000000000 +0200
3+++ rpm-4.4.6.macros/macros.in 2006-08-05 20:53:57.000000000 +0200
dc6aae45 4@@ -219,7 +219,7 @@
e493253e
ER
5 %_tmppath %{_var}/tmp
6
7 # Path to top of build area.
dc6aae45
JB
8-%_topdir %{_usrsrc}/rpm
9+%_topdir %(echo $HOME)/rpm
e493253e
ER
10
11 # The path to the unzip executable (legacy, use %{__unzip} instead).
12 %_unzipbin %{__unzip}
3f2f32d6
ER
13@@ -330,8 +330,8 @@
14 # "w9.gzdio" gzip level 9 (default).
15 # "w9.bzdio" bzip2 level 9.
16 #
17-#%_source_payload w9.gzdio
18-#%_binary_payload w9.gzdio
19+%_source_payload w9.gzdio
20+%_binary_payload w9.lzdio
21
22 # Archive formats to use for source/binary package payloads.
23 # "cpio" cpio archive (default)
5b60995d 24@@ -909,10 +909,10 @@
a3b822b2
JB
25 export RPM_BUILD_ROOT}\
26 %{?_javaclasspath:CLASSPATH=\"%{_javaclasspath}\"\
27 export CLASSPATH}\
28- unset PERL_MM_OPT\
29+ unset PERL_MM_OPT || :\
30 LANG=C\
31 export LANG\
32- unset DISPLAY\
33+ unset DISPLAY || :\
34 \
35 %{verbose:set -x}%{!verbose:exec > /dev/null}\
36 umask 022\
5dda5fa7 37@@ -1350,5 +1350,23 @@
5b60995d 38 #%__executable_provides @RPMCONFIGDIR@/executabledeps.sh --provides
dc6aae45 39 #%__executable_requires @RPMCONFIGDIR@/executabledeps.sh --requires
e493253e
ER
40
41+# PLD rpm macros
42+%_enable_debug_packages 1
43+
44+#-----------------------------------------------------------------
45+# CFLAGS and LDFLAGS used to build
46+
5dda5fa7
PS
47+%debuginfocflags %{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1: -gdwarf-2 -g2}%{expand:%%undefine __dic_%{?_enable_debug_packages}}
48+# -feliminate-dwarf2-dups disabled until PR ld/3290 is fixed.
e493253e
ER
49+
50+%debugcflags -O0 -g -Wall
5b60995d 51+%optldflags -Wl,--as-needed
52+
53+# Warning: those macros are overwritten by macros.build,
54+# left here for compatibility
e493253e
ER
55+%rpmcflags %{?debug:%debugcflags}%{!?debug:%optflags}%{?debuginfocflags}
56+%rpmcxxflags %{rpmcflags}
4126bfd3 57+%rpmldflags %{!?no_build_with_as_needed:-Wl,--as-needed}
e493253e
ER
58+
59 # \endverbatim
60 #*/
This page took 0.038618 seconds and 4 git commands to generate.