LDFLAGS is the variable for the linker flags.
Linker libs such as -lfuse should be put in the LDLIBS variable, not in LDFLAGS.

To solve the problem and simplify the Makefile at the same time:

In the Makefile, the LDFLAGS definition should be replaced with LDLIBS:

LDLIBS := $(shell pkg-config fuse --libs)

Also the 2-line fusexmp_fh section should be simplified with:

fusexml_fh: LDLIBS += -lulockmgr

(To make it even cleaner, there should be separate CFLAGS and CPPFLAGS
pkg-config settings: --cflags-only-other and --cflags-only-I
respectively)

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

Title:
  Linker fails when compiling fuse files with "undefined reference to
  `fuse_main_real'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fuse/+bug/878612/+subscriptions

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

Reply via email to