Skip to content

Commit 6c06c76

Browse files
fix compilation error.
1 parent 4984745 commit 6c06c76

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ fi
163163

164164
cd "$BASEDIR/src"
165165
[ -f Makefile ] && make -k distclean >/dev/null 2>&1
166-
$QMAKE $OPT target.path=\"$LIBDIR\" header.path=\"$INCLUDEDIR\" $ENABLE_GUI
166+
$QMAKE $OPT target.path=\"$LIBDIR\" header.path=\"$INCLUDEDIR\" $ENABLE_GUI $ENABLE_SHARED_MONGOC
167167
cd "$BASEDIR/tools"
168168
[ -f Makefile ] && make -k distclean >/dev/null 2>&1
169169
$QMAKE -recursive $OPT target.path=\"$BINDIR\" header.path=\"$INCLUDEDIR\" datadir=\"$DATADIR\" lib.path=\"$LIBDIR\"

src/corelib.pro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,11 @@ windows {
373373
}
374374
} else {
375375
isEmpty( shared_mongoc ) {
376-
INCLUDEPATH += /usr/include/libmongoc-1.0 /usr/include/libbson-1.0
377-
LIBS += -lmongoc-1.0 -lbson-1.0
378-
} else {
379376
INCLUDEPATH += ../3rdparty/mongo-c-driver/src/mongoc ../3rdparty/mongo-c-driver/src/libbson/src/bson
380377
LIBS += ../3rdparty/mongo-c-driver/libmongoc.a
378+
} else {
379+
INCLUDEPATH += /usr/include/libmongoc-1.0 /usr/include/libbson-1.0
380+
LIBS += -lmongoc-1.0 -lbson-1.0
381381
}
382382
}
383383

0 commit comments

Comments
 (0)