History

Merge pull request #55 from mstorsjo/no-libdl

Don't link to libdl when building with NO_DYNAMIC_VP defined

Andreas Gal committed 12 years ago

Commit 1ca805c2 parents f427fc6 f1cfd1e3 files · +4 −2Browse files

Unified · Split

3 files
  1. build/platform-darwin.mk +1 −1
  2. build/platform-linux.mk +1 −1
  3. codec/decoder/plus/src/welsCodecTrace.cpp +2 −0
build/platform-darwin.mk+1−1
@@ -1,5 +1,5 @@
11 USE_ASM = No # We don't have ASM working on Mac yet
22 ASM = nasm
33 CFLAGS += -fPIC
4−LDFLAGS += -ldl -lpthread
4+LDFLAGS += -lpthread
55 ASMFLAGS += -f macho --prefix _
build/platform-linux.mk+1−1
@@ -1,5 +1,5 @@
11 ASM = nasm
22 CFLAGS += -fPIC -DLINUX -D__NO_CTYPE
3−LDFLAGS += -ldl -lpthread
3+LDFLAGS += -lpthread
44 ASMFLAGS += -f elf
55
codec/decoder/plus/src/welsCodecTrace.cpp+2−0
@@ -293,6 +293,7 @@ int32_t CWelsCodecTrace::LoadWelsTraceModule() { · 292 unmodified lines
293293 }
294294
295295 int32_t CWelsCodecTrace::UnloadWelsTraceModule() {
296+#ifndef NO_DYNAMIC_VP
296297 #if defined _WIN32
297298 if (m_hTraceHandle) {
298299 ::FreeLibrary ((HMODULE)m_hTraceHandle);
@@ -305,6 +306,7 @@ int32_t CWelsCodecTrace::UnloadWelsTraceModule() { · 6 unmodified lines
305306 if (m_hTraceHandle) {
306307 ::dlclose (m_hTraceHandle);
307308 }
309+#endif
308310 #endif
309311
310312 m_hTraceHandle = NULL;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t