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 @@
1USE_ASM = No # We don't have ASM working on Mac yet1USE_ASM = No # We don't have ASM working on Mac yet
2ASM = nasm2ASM = nasm
3CFLAGS += -fPIC3CFLAGS += -fPIC
4LDFLAGS += -ldl -lpthread4LDFLAGS += -lpthread
5ASMFLAGS += -f macho --prefix _5ASMFLAGS += -f macho --prefix _
build/platform-linux.mk+1−1
@@ -1,5 +1,5 @@
1ASM = nasm1ASM = nasm
2CFLAGS += -fPIC -DLINUX -D__NO_CTYPE2CFLAGS += -fPIC -DLINUX -D__NO_CTYPE
3LDFLAGS += -ldl -lpthread3LDFLAGS += -lpthread
4ASMFLAGS += -f elf4ASMFLAGS += -f elf
5 5
codec/decoder/plus/src/welsCodecTrace.cpp+2−0
@@ -293,6 +293,7 @@ int32_t CWelsCodecTrace::LoadWelsTraceModule() { · 292 unmodified lines
293}293}
294 294
295int32_t CWelsCodecTrace::UnloadWelsTraceModule() {295int32_t CWelsCodecTrace::UnloadWelsTraceModule() {
296#ifndef NO_DYNAMIC_VP
296#if defined _WIN32297#if defined _WIN32
297 if (m_hTraceHandle) {298 if (m_hTraceHandle) {
298 ::FreeLibrary ((HMODULE)m_hTraceHandle);299 ::FreeLibrary ((HMODULE)m_hTraceHandle);
@@ -305,6 +306,7 @@ int32_t CWelsCodecTrace::UnloadWelsTraceModule() { · 6 unmodified lines
305 if (m_hTraceHandle) {306 if (m_hTraceHandle) {
306 ::dlclose (m_hTraceHandle);307 ::dlclose (m_hTraceHandle);
307 }308 }
309#endif
308#endif310#endif
309 311
310 m_hTraceHandle = NULL;312 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