Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fails to build from source on GNU/kFreeBSD because of -R link option #5393
Original bug ID: 5393
The summary is self-explanatory... attached is a patch that makes the Debian package compile again.
Comment author: @glondu
I haven't found any documentation for -R. It is added only on BSD systems (and not on e.g. GNU).
This option has been introduced in commit 9072 (in 2008) by doligez, and it looks like it sets RPATH, so an equivalent could be -Wl,-rpath= (untested). However, this would go against Debian policy, since libX11 is in a standard location (my guess is that libX11 is in a location that is not searched by default by the dynamic linker on BSD). I doubt anyone would want to run GNU/kFreeBSD with a libX11 that is not in a standard location, though, since it mimics GNU for userland... so I would drop the option for the same reasons it is not given in the other GNU cases.
Comment author: @damiendoligez
This is all caused by a bug in GNU's config.guess: it is supposed to output at triplet, but on Ubuntu it outputs: i686-pc-linux-gnu, which is a quadruplet.
This potentially breaks all the "case" statements that try to match one member of the triplet.
This should probably be reported to the maintainers of autoconf and/or ubuntu.