Skip to content

Instantly share code, notes, and snippets.

@newperson1746
Last active March 5, 2021 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save newperson1746/8f01f0d296a5793f5123f1ec2384c735 to your computer and use it in GitHub Desktop.
Save newperson1746/8f01f0d296a5793f5123f1ec2384c735 to your computer and use it in GitHub Desktop.
Compile synergy-core on 10.6 Snow Leopard (or older with tigerbrew)

COMPILING SYNERGY ON 10.6 SNOW LEOPARD

  1. Install Xcode-3.2.6 (latest)
  2. install tigerbrew (curl will SSL error out due to age, so download it with Arctic Fox or transplant)
  3. download src from https://github.com/symless/synergy-core/releases/tag/v1.7.6-stable (latest I tested, 1.8.8 doesn't compile)
  4. brew install cmake
  5. go to synergy root, cd ext
  6. make directories for gmock-1.6.0 and gtest-1.6.0, then extract the zips into there
  7. from root, mkdir build, then run CFLAGS=-mmacosx-version-min=10.6 LDFLAGS=-mmacosx-version-min=10.6 cmake .. -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.6.sdk -DOSX_TARGET_MAJOR=10 -DOSX_TARGET_MINOR=6

Now you can make -j <ncpus> and it will produce synergyc and synergys

1.8.8 also fails to compile on modern linux with the use of OpenSSL v1.0.x obsolete calls, yet 1.7.6 compiles with no modifications on Ubuntu 20.04! (just extract the stuff in ext/ the same way, and run an easy cmake ..; make within a build dir)

I think this is the ideal version for controlling the largest range of old to new operating systems

OPTIONAL: make a launchd daemon plist from this template https://blog.scottlowe.org/2012/04/30/updated-launchd-property-list-file-for-synergy/

The same procedure should work for compiling on old versions as far back as Tiger (due to tigerbrew)

Just replace the 10.6 values with your SDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment