Fix linux library

This commit is contained in:
Victor Shcherb 2012-06-20 22:47:55 +02:00
parent 2d1cdf838c
commit 2a62f75063
2 changed files with 4 additions and 2 deletions

View file

@ -24,7 +24,7 @@ OSMAND_FLAGS_WINDOWS = \
LIBNAME = $(LIBRARY_PREFIX)osmand LIBNAME = $(LIBRARY_PREFIX)osmand
LIBTYPE = $(DYNAMICLIB_EXT) LIBTYPE = $(DYNAMICLIB_EXT)
LDLIBS += -Wl,--whole-archive -lskia -Wl,--no-whole-archive -lproto -lft2 -lexpat -lpng -lz LDLIBS += -Wl,-Bsymbolic -Wl,--whole-archive -lskia -lpng -Wl,--no-whole-archive -lproto -lft2 -lexpat -lz
ifeq ($(TARGET),windows) ifeq ($(TARGET),windows)
LDLIBS += -lwinmm -lgdi32 -lusp10 LDLIBS += -lwinmm -lgdi32 -lusp10

View file

@ -50,10 +50,12 @@ ifeq ($(TARGET),windows)
SKIAFLAGS += $(SKIA_FLAGS_WINDOWS) SKIAFLAGS += $(SKIA_FLAGS_WINDOWS)
else else
LOCAL_SRC_FILES += \ LOCAL_SRC_FILES += \
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_sandbox_none.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkThread_pthread.cpp \ $(OSMAND_SKIA_LOC)/src/ports/SkThread_pthread.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkTime_Unix.cpp \ $(OSMAND_SKIA_LOC)/src/ports/SkTime_Unix.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_FreeType.cpp \ $(OSMAND_SKIA_LOC)/src/ports/SkFontHost_FreeType.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_linux.cpp $(OSMAND_SKIA_LOC)/src/ports/SkFontHost_linux.cpp \
$(OSMAND_SKIA_LOC)/src/core/SkMMapStream.cpp
SKIAFLAGS += \ SKIAFLAGS += \
-DSK_BUILD_FOR_UNIX -DSK_BUILD_FOR_UNIX
endif endif