Skip to content
Browse files

Fix order of libraries.

The project did not compile with the newest GCC. The problem was that the order of the libraries passed using -l on the command line does matter now.
  • Loading branch information...
1 parent b2a1ac9 commit 990ca47dea479c8c98ba5a7a5203178f841258ac @cyberhuman committed Nov 29, 2011
Showing with 4 additions and 3 deletions.
  1. +2 −1 src/Makefile.am
  2. +2 −2 src/Makefile.in
View
3 src/Makefile.am
@@ -1,4 +1,5 @@
bin_PROGRAMS = beholdfs
beholdfs_SOURCES = beholddb.c beholdfs.c common.c fs.c schema.c version.c
-beholdfs_CFLAGS = -g `pkg-config fuse --cflags --libs` -lsqlite3 -std=gnu99 -fms-extensions -DFUSE_USE_VERSION=26
+beholdfs_CFLAGS = -g -std=gnu99 -fms-extensions -DFUSE_USE_VERSION=26 `pkg-config fuse --cflags`
+LIBS = `pkg-config fuse --libs` -lsqlite3
View
4 src/Makefile.in
@@ -90,7 +90,7 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
+LIBS = `pkg-config fuse --libs` -lsqlite3
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
@@ -150,7 +150,7 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
beholdfs_SOURCES = beholddb.c beholdfs.c common.c fs.c schema.c version.c
-beholdfs_CFLAGS = -g `pkg-config fuse --cflags --libs` -lsqlite3 -std=gnu99 -fms-extensions -DFUSE_USE_VERSION=26
+beholdfs_CFLAGS = -g -std=gnu99 -fms-extensions -DFUSE_USE_VERSION=26 `pkg-config fuse --cflags`
all: all-am
.SUFFIXES:

0 comments on commit 990ca47

Please sign in to comment.
Something went wrong with that request. Please try again.