The problem is the ordering in the linker call: Since the --as-needed change to 
the linker defaults the order does matter. Libs get only included if they 
appear *after* the object file which uses one of its symbols in the commandline.
But phasex's Makefile passes the libs in AM_LDFLAGS which is used before the 
object files in the linker command. The fix is to pass the libs in LIBS instead 
(as it's added to the commandline after the object files).

A quick fix would be to replace 
  AM_LDFLAGS  = $(INTLLIBS) @PHASEX_LIBS@
with
  LIBS  = $(INTLLIBS) @PHASEX_LIBS@ -lX11
in src/Makefile.am
(the addition of -lX11 is needed as else the linking fails due to the 
no-indirect DSO linking change).

Note: This change makes the package build again but should be checked by
someone more familiar with automake than me.

-- 
phasex FTBFS in Natty
https://bugs.launchpad.net/bugs/677501
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to