We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2187

Summary: CMake is not adding src/core/linux/*.c to the build, linking to SDL results in errors.
Product: SDL Reporter: Daniel Ribeiro Maciel <daniel.maciel>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: etc0de
Version: 2.0.1   
Hardware: x86_64   
OS: Linux   
Attachments: Patch for fix.

Description Daniel Ribeiro Maciel 2013-10-26 19:55:13 UTC
Created attachment 1397 [details]
Patch for fix.

CMake is not adding src/core/linux/*.c to the build, linking to SDL results in errors:

(...)/libSDL2-2.0.so.1.0.1: undefined reference to `SDL_UDEV_AddCallback'
(...)/libSDL2-2.0.so.1.0.1: undefined reference to `SDL_UDEV_Poll'
(...)/libSDL2-2.0.so.1.0.1: undefined reference to `SDL_UDEV_Init'
(...)/libSDL2-2.0.so.1.0.1: undefined reference to `SDL_UDEV_Quit'
(...)/libSDL2-2.0.so.1.0.1: undefined reference to `SDL_UDEV_DelCallback'
(...)/libSDL2-2.0.so.1.0.1: undefined reference to `SDL_UDEV_Scan'
collect2: error: ld returned 1 exit status

I have attached a patch to fix the CMake script.
Comment 1 Sam Lantinga 2013-11-03 19:00:48 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/4d3e6191c807