Skip to content

Commit 8af2461

Browse files
committed
Include a startup source for FreeBSD
This seems to have been missed when the startup files were split out during a refactor to support starting OpenRGB as a Windows service in cf2df81. Without this change, we see `ld: error: undefined symbol: main` when compiling on FreeBSD. I chose to name the file main_FreeBSD_Linux_MacOS instead of main_Linux_MacOS_FreeBSD to keep the list alphabetical.
1 parent 6c8c48d commit 8af2461

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

OpenRGB.pro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ contains(QMAKE_PLATFORM, linux) {
523523
SPDAccessor/EE1004Accessor_Linux.cpp \
524524
SPDAccessor/SPD5118Accessor_Linux.cpp \
525525
SuspendResume/SuspendResume_Linux_FreeBSD.cpp \
526-
startup/main_Linux_MacOS.cpp \
526+
startup/main_FreeBSD_Linux_MacOS.cpp \
527527

528528
#-------------------------------------------------------------------------------------------#
529529
# Set up install paths #
@@ -647,6 +647,7 @@ contains(QMAKE_PLATFORM, freebsd) {
647647
serial_port/find_usb_serial_port_linux.cpp \
648648
AutoStart/AutoStart-FreeBSD.cpp \
649649
SuspendResume/SuspendResume_Linux_FreeBSD.cpp \
650+
startup/main_FreeBSD_Linux_MacOS.cpp \
650651

651652
SOURCES -= \
652653
Controllers/SeagateController/RGBController_Seagate.cpp \
@@ -716,7 +717,7 @@ macx {
716717
AutoStart/AutoStart-MacOS.cpp \
717718
qt/macutils.mm \
718719
SuspendResume/SuspendResume_MacOS.cpp \
719-
startup/main_Linux_MacOS.cpp \
720+
startup/main_FreeBSD_Linux_MacOS.cpp \
720721

721722
SOURCES += $$CONTROLLER_CPP_MACOS
722723

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*---------------------------------------------------------*\
2-
| main_Linux_MacOS.cpp |
2+
| main_FreeBSD_Linux_MacOS.cpp |
33
| |
44
| Entry point for the OpenRGB application |
55
| |

0 commit comments

Comments
 (0)