summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-October/009212.html
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:
&gt;<i> On 30.10.2011 00:07, Oliver Burger wrote:
</I>&gt;&gt;<i> Hi,
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> I (or better one of my padawans) have one problem:
</I>&gt;&gt;<i> When trying to build ascii the build is running fine but in the buildlogs,
</I>&gt;&gt;<i> there is a strange warning about not finding any &quot;build ID note&quot;.
</I>&gt;<i> This happens when our %ldflags are not used for linking.
</I>&gt;<i>
</I>&gt;<i> You probably need to use LDFLAGS=&quot;%ldflags&quot; somewhere or some other flag
</I>&gt;<i> or variable, to get the %ldflags to appear after 'cc' in this line in
</I>&gt;<i> the build:
</I>&gt;<i> cc -DREVISION=3.11 ascii.c -o ascii
</I>&gt;<i>
</I>&gt;<i> - Spoilers below -
</I>&gt;<i>
</I>&gt;<i> OK, looked at the package.
</I>&gt;<i> First, your %build is wrong. You use CFLAGS=&quot;$RPM_OPT_FLAGS&quot; in the
</I>&gt;<i> %make command, but the Makefile doesn't even use any CFLAGS variable!
</I>&gt;<i>
</I>&gt;<i> Similarly, it doesn't use LDFLAGS so setting that would do no good either.
</I>&gt;<i>
</I>&gt;<i> You need to either e.g.
</I>&gt;<i> a) change the CFLAGS=&quot;$RPM_OPT_FLAGS&quot; to CC=&quot;gcc %optflags %ldflags&quot;, or
</I>&gt;<i> b) patch the Makefile to use $(CFLAGS) $(LDFLAGS) after the $(CC)
</I>&gt;<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>