Skip to content

Commit

Permalink
libws: fix LWS_INSTALL_LIBDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
hanwckf committed Dec 30, 2020
1 parent c3993d4 commit d218f5f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions trunk/libs/libwebsockets/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ download_test:
extract_test:
( if [ ! -d $(SRC_NAME) ]; then \
tar -xf $(SRC_NAME).tar.gz; \
patch -p1 -d $(SRC_NAME) < $(SRC_NAME).patch ; \
fi )

config_test:
Expand Down
12 changes: 12 additions & 0 deletions trunk/libs/libwebsockets/libwebsockets-4.1.4.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -rupw libwebsockets-4.1.4-orig/cmake/lws_config.h.in libwebsockets-4.1.4/cmake/lws_config.h.in
--- libwebsockets-4.1.4-orig/cmake/lws_config.h.in 2020-10-26 19:31:31.000000000 +0800
+++ libwebsockets-4.1.4/cmake/lws_config.h.in 2020-12-30 09:55:18.141019011 +0800
@@ -7,7 +7,7 @@
#endif

#define LWS_INSTALL_DATADIR "${CMAKE_INSTALL_PREFIX}/share"
-#define LWS_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}/${LWS_INSTALL_LIB_DIR}${LIB_SUFFIX}"
+#define LWS_INSTALL_LIBDIR "/lib"
#define LWS_LIBRARY_VERSION_MAJOR ${LWS_LIBRARY_VERSION_MAJOR}
#define LWS_LIBRARY_VERSION_MINOR ${LWS_LIBRARY_VERSION_MINOR}
#define LWS_LIBRARY_VERSION_PATCH_ELABORATED ${LWS_LIBRARY_VERSION_PATCH_ELABORATED}

0 comments on commit d218f5f

Please sign in to comment.