Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions regamedll/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ endif()
if (NOT DEBUG AND NOT ANDROID AND NOT APPLE)
set(LINK_FLAGS "${LINK_FLAGS} \
-Wl,-gc-sections -Wl,--version-script=\"${PROJECT_SOURCE_DIR}/../version_script.lds\"")
if (CMAKE_SYSTEM_NAME MATCHES "BSD|DragonFly")
# lld rejects version script entries for symbols not defined in the output (libstdc++-only names)
set(LINK_FLAGS "${LINK_FLAGS} -Wl,--undefined-version")
endif()
endif()

find_program(CCACHE_FOUND ccache)
Expand Down
2 changes: 2 additions & 0 deletions regamedll/engine/osconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@
#include <sys/time.h>
#include <sys/types.h>
#if !defined(__APPLE__)
#if defined(__linux__)
#include <sys/sysinfo.h>
#endif
#else
#include <sys/sysctl.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion regamedll/game_shared/counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#ifdef __APPLE__
#ifndef __linux__
#include <limits.h>
#else
#include <linux/limits.h>
Expand Down
2 changes: 1 addition & 1 deletion regamedll/public/tier0/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
// Can't use extern "C" when DLL exporting a global
#define DLL_GLOBAL_EXPORT extern __declspec(dllexport)
#define DLL_GLOBAL_IMPORT extern __declspec(dllimport)
#elif defined __linux__ || defined __APPLE__
#elif defined __linux__ || defined __APPLE__ || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__

// Used for dll exporting and importing
#define DLL_EXPORT extern "C"
Expand Down
2 changes: 1 addition & 1 deletion regamedll/version/appversion.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

init()
{
Expand Down