chmduquesne/sharebox-fs — pull request #1 by gentooboontoo (2012-01-15 21:02:27+00:00)
Title: --as-needed relative linking failure fix

Linked libraries have to be passed after objs to prevent linking failures on some systems.

I had to make that change to achieve to link sharebox on my Ubuntu system.

Below, error I had before making the change:

$ make
gcc -g -Wall `pkg-config fuse --libs` -o sharebox sharebox.o git-annex.o slash.o
sharebox.o: In function `sharebox_opt_proc':
/home/julien/repositories/sharebox-fs/sharebox.c:341: undefined reference to `fuse_opt_add_arg'
/home/julien/repositories/sharebox-fs/sharebox.c:342: undefined reference to `fuse_main_real'
/home/julien/repositories/sharebox-fs/sharebox.c:346: undefined reference to `fuse_opt_add_arg'
/home/julien/repositories/sharebox-fs/sharebox.c:347: undefined reference to `fuse_main_real'
sharebox.o: In function `main':
/home/julien/repositories/sharebox-fs/sharebox.c:378: undefined reference to `fuse_opt_parse'
/home/julien/repositories/sharebox-fs/sharebox.c:380: undefined reference to `fuse_main_real'

Thanks