distribution/packages/databases/mysql/patches/mysql-0004-compile-comp_sql-even-when-crosscompiling.patch

18 lines
602 B
Diff
Raw Normal View History

2022-02-05 14:23:32 +00:00
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
index 1d0480b..425abb8 100644
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -14,10 +14,8 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# Build comp_sql - used for embedding SQL in C or C++ programs
-IF(NOT CMAKE_CROSSCOMPILING)
- ADD_EXECUTABLE(comp_sql comp_sql.c)
- TARGET_LINK_LIBRARIES(comp_sql)
-ENDIF()
+ADD_EXECUTABLE(comp_sql comp_sql.c)
+TARGET_LINK_LIBRARIES(comp_sql)
# Add compiler information, for easier debugging of output from mysql_config.
SET(COMPILER_ID_AND_VERSION