Skip to content

Commit

Permalink
added default option -ldl -lpthread to fake_qmake
Browse files Browse the repository at this point in the history
  • Loading branch information
pvbrowser committed Apr 27, 2015
1 parent 9d2b507 commit a49212d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 2 deletions.
Binary file modified fake_qmake/fake_qmake
Binary file not shown.
1 change: 1 addition & 0 deletions fake_qmake/fake_qmake.cpp
Expand Up @@ -761,6 +761,7 @@ else if(strcmp(str_template.text(),"lib") == 0)
//fprintf(fout,"LFLAGS = -m64 -Wl,-O1 -shared -Wl,-soname,lib%s.so.1", str_target.text());
fprintf(fout,"LFLAGS = -Wl,-O1 -shared -Wl,-soname,lib%s.so.1", str_target.text());
for(i=1; i<=n_qmake_lflags; i++) fprintf(fout," %s", row_qmake_lflags.text(i));
fprintf(fout," -ldl -lpthread");
}
fprintf(fout,"\n");
fprintf(fout,"LIBS = $(SUBLIBS)");
Expand Down
14 changes: 14 additions & 0 deletions find_command.sh
@@ -0,0 +1,14 @@
#!/bin/bash
if [ "x${1}" = "x" ]; then
echo "usage: ./find_command.sh commandString"
grep strncmp pvbrowser/interpreter.cpp pvbrowser/QDrawWidget.cpp
# pvbrowser/gldecode.cpp | less
else
echo "util.cpp :"
grep "${1}" pvserver/util.cpp
echo "interpreter.cpp :"
grep "${1}" pvbrowser/interpreter.cpp
echo "QDrawWidget.cpp :"
grep "${1}" pvbrowser/QDrawWidget.cpp
fi

2 changes: 1 addition & 1 deletion pvserver/pvsid.pro
Expand Up @@ -25,4 +25,4 @@ SOURCES += glencode.cpp \
util.cpp

LIBS += -ldl -lpthread

TARGET = pvsid
2 changes: 1 addition & 1 deletion pvserver/pvsmt.pro
Expand Up @@ -30,4 +30,4 @@ SOURCES += glencode.cpp \
wthread.cpp

LIBS += -ldl -lpthread

TARGET = pvsmt
Binary file modified pvsexample/pvsexample
Binary file not shown.

0 comments on commit a49212d

Please sign in to comment.