Skip to content

Commit cc6b3e0

Browse files
committed
CMake: now can build Release with -Wl,--no-undeifned
1 parent 7be9ea4 commit cc6b3e0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
6565
endif()
6666
endif()
6767

68-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive --std=c++17 -Wno-attributes -pipe -fvisibility=hidden")
68+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive --std=c++17 -Wno-attributes -pipe -fvisibility=hidden -Wl,--no-undefined")
6969
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive") This is for the future versions
7070
#set(CMAKE_CXX_STANDARD 14) #Otherwise adds -std=gnu++11 and breaks successful building
7171
#set(CMAKE_CXX_STANDARD_REQUIRED ON)

src/xrPhysics/IClimableObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ class IClimableObject
4242
#if defined(WINDOWS)
4343
virtual ~IClimableObject() = 0 {}
4444
#elif defined(LINUX)
45-
virtual ~IClimableObject() = 0;
45+
virtual ~IClimableObject() {}
4646
#endif
4747
};

src/xrPhysics/icollisiondamagereceiver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ICollisionDamageReceiver
1616
#if defined(WINDOWS)
1717
virtual ~ICollisionDamageReceiver() = 0 {}
1818
#elif defined(LINUX)
19-
virtual ~ICollisionDamageReceiver() = 0;
19+
virtual ~ICollisionDamageReceiver() {}
2020
#endif
2121
};
2222

src/xrUICore/Static/UILanimController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class CLAItem;
1111
#define LA_TEXTCOLOR (1 << 2)
1212
#define LA_TEXTURECOLOR (1 << 3)
1313

14-
struct color_animation
14+
struct XRUICORE_API color_animation
1515
{
1616
color_animation();
1717
CLAItem* m_lanim;

0 commit comments

Comments
 (0)