Bug#555468: FTBFS with binutils-gold

Christian Mauduit ufoot at ufoot.org
Sat Nov 14 14:53:51 UTC 2009


OK, double-checking stuff, I can't see why it fails, since -lm is really
in LDFLAGS, which is passed to $(CC)

Maybe trying to change the order of parameters can change things?
Something like:

----8<-----------------------------------------
--- orig/utils/lwmapgen/Makefile
+++ mod/utils/lwmapgen/Makefile
@@ -14,7 +14,7 @@
 all: $(EXE)

 $(EXE): core main.c
-	$(CC) $(CFLAGS) main.c $(OBJ) $(LDFLAGS) -o $(EXE)
+	$(CC) $(CFLAGS) $(LDFLAGS) main.c $(OBJ) -o $(EXE)
 	#strip $(EXE)

 core: $(OBJ)
----8<-----------------------------------------

That is, puting the "-lm" *before* the object files?

Have a nice day,

Christian.

On Mon, November 9, 2009 9:21 pm, Peter Fritzsche wrote:
> Source: liquidwar
> Version: 5.6.4-2
> Severity: minor
> User: peter.fritzsche at gmx.de
> Usertags: no-add-needed
>
> Tried to build your package and it fails to build with GNU binutils-gold.
> The
> important difference is that --no-add-needed is the default behavior of of
> GNU
> binutils-gold. Please provide all needed libraries to the linker when
> building
> your executables.
>
> More informations can be found at
>  http://wiki.debian.org/qa.debian.org/FTBFS#A2009-11-02Packagesfailingbecausebinutils-gold.2BAC8-indirectlinking
>
> Linking liquidwar-mapgen (target=default, debug=no, static=no)
> /usr/bin/ld: ../utils/lwmapgen/worms.o: in function
> filled:../utils/lwmapgen/worms.c:37: error: undefined reference to
> 'sincos'
> /usr/bin/ld: ../utils/lwmapgen/worms.o: in function
> worms:../utils/lwmapgen/worms.c:75: error: undefined reference to 'sincos'
> collect2: ld returned 1 exit status
> make[2]: *** [liquidwar-mapgen] Error 1
>
>
>
>
>
>


-- 
Christian Mauduit <ufoot at ufoot.org> - http://www.ufoot.org/ ___ __/\__
Liquid War 6 - http://www.gnu.org/software/liquidwar6/     / _")\~ \~/
"Les amis de la vérité sont ceux qui la cherchent et non _/ /   /_ o_\
ceux qui se vantent de l'avoir trouvée" - Condorcet     (__/      \/






More information about the Pkg-games-devel mailing list