From e3180ada12753c23d67be6a9eb9c19fb92f6c8e5 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 14 Aug 2009 21:20:30 +0000 Subject: Corrected some logic, and ensured that build always builds against the static version of libbu++, just to be safe. --- build.conf | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.conf b/build.conf index 1f6d0f1..b52528c 100644 --- a/build.conf +++ b/build.conf @@ -8,7 +8,7 @@ set "CXXFLAGS" += "-ggdb" rule "exe", target file, requires "libbu++/libbu++.a", - set "LDFLAGS" += "-Llibbu++ -lbu++ -ldl", + set "LDFLAGS" += "-Llibbu++ -Wl,-Bstatic -lbu++ -Wl,-Bdynamic -ldl", set "CXXFLAGS" += "-Ilibbu++", set "FLEXFLAGS" = "--bison-bridge --bison-locations", input filesIn("src") filter regexp(".*\\.(cpp|y|l)$") diff --git a/src/main.cpp b/src/main.cpp index 7ea2f18..4153982 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -57,7 +57,7 @@ public: virtual int cmdParam( int argc, char *argv[] ) { - if( !sAction.isSet() ) + if( sAction.isSet() ) { printf("You can only specify one action per command line.\n\n"); exit( 1 ); -- cgit v1.2.3