blob: b871114af993084c0db80126c5d903fba43aa133 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] Strange warning when building ascii
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Strange%20warning%20when%20building%20ascii&In-Reply-To=%3C4EAD1F1F.7060903%40gmx.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="009210.html">
<LINK REL="Next" HREF="009211.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] Strange warning when building ascii</H1>
<B>Kamil Rytarowski</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Strange%20warning%20when%20building%20ascii&In-Reply-To=%3C4EAD1F1F.7060903%40gmx.com%3E"
TITLE="[Mageia-dev] Strange warning when building ascii">n54 at gmx.com
</A><BR>
<I>Sun Oct 30 10:55:43 CET 2011</I>
<P><UL>
<LI>Previous message: <A HREF="009210.html">[Mageia-dev] Strange warning when building ascii
</A></li>
<LI>Next message: <A HREF="009211.html">[Mageia-dev] Mageia-dev] mageia 2 and systemd
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#9212">[ date ]</a>
<a href="thread.html#9212">[ thread ]</a>
<a href="subject.html#9212">[ subject ]</a>
<a href="author.html#9212">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On 30.10.2011 08:54, Anssi Hannula wrote:
><i> On 30.10.2011 00:07, Oliver Burger wrote:
</I>>><i> Hi,
</I>>><i>
</I>>><i> I (or better one of my padawans) have one problem:
</I>>><i> When trying to build ascii the build is running fine but in the buildlogs,
</I>>><i> there is a strange warning about not finding any "build ID note".
</I>><i> This happens when our %ldflags are not used for linking.
</I>><i>
</I>><i> You probably need to use LDFLAGS="%ldflags" somewhere or some other flag
</I>><i> or variable, to get the %ldflags to appear after 'cc' in this line in
</I>><i> the build:
</I>><i> cc -DREVISION=3.11 ascii.c -o ascii
</I>><i>
</I>><i> - Spoilers below -
</I>><i>
</I>><i> OK, looked at the package.
</I>><i> First, your %build is wrong. You use CFLAGS="$RPM_OPT_FLAGS" in the
</I>><i> %make command, but the Makefile doesn't even use any CFLAGS variable!
</I>><i>
</I>><i> Similarly, it doesn't use LDFLAGS so setting that would do no good either.
</I>><i>
</I>><i> You need to either e.g.
</I>><i> a) change the CFLAGS="$RPM_OPT_FLAGS" to CC="gcc %optflags %ldflags", or
</I>><i> b) patch the Makefile to use $(CFLAGS) $(LDFLAGS) after the $(CC)
</I>><i> instance and use %setup_compile_flags before %make.
</I>Thank you! You are amazing!
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="009210.html">[Mageia-dev] Strange warning when building ascii
</A></li>
<LI>Next message: <A HREF="009211.html">[Mageia-dev] Mageia-dev] mageia 2 and systemd
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#9212">[ date ]</a>
<a href="thread.html#9212">[ thread ]</a>
<a href="subject.html#9212">[ subject ]</a>
<a href="author.html#9212">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|