Skip to content
Snippets Groups Projects
  1. Jan 20, 2025
    • Deucе's avatar
      More rpath hackery... · cf50632a
      Deucе authored
      If SBBSDIR is set, add $(SBBSDIR)/exec to rpath.
      Always add the original output directory to rpath.
      
      I'm not sure what the old LD_RUN_PATH stuff was trying to do, but
      I think these are the bits that make it work.
      cf50632a
  2. Jan 17, 2025
  3. Jan 16, 2025
  4. Jan 05, 2025
    • Rob Swindell's avatar
      02683204
    • Deucе's avatar
      For macOS, set install_name to @rpath/libNAME.dylib and use it · 75691a66
      Deucе authored
      For the SBBS binaries, set @executable_path and
      @executable_path/../${LIBODIR} so they can all be in one dir, or
      they can be in the build output dirs and still work.
      
      For utilities, set to @executable_path and
      @executable_path/../../${LIBODIR} for the same reason.
      
      With this, we shouldn't need to fiddle with DYLD_LIBRARY_PATH
      75691a66
    • Deucе's avatar
      Fix GTK stuff for macOS · 750dba01
      Deucе authored
      Remove the -E linker flag.
      This should not be needed anymore, and isn't supported on macOS.
      
      Have shared libraries include their full path.
      This allows linked dylibs to work from where they were built, so
      as long as you don't build the binaries on a CI machine, then try
      to run them on a users machine (*cough*), it'll work out.
      
      Use the correct rpath argument format on macOS.
      It uses -rpath, not --rpath.
      750dba01
  5. Nov 13, 2024
    • Deucе's avatar
      Normalize SDL on macOS · bf3a2d83
      Deucе authored
      Prefer sdl2-config from the path, and only use the framework in
      /Library/Frameworks if that doesn't exist... to that end, don't
      copy the framework into the app anymore unless you're using it.
      
      This should clean out the pipes.
      bf3a2d83
  6. Nov 10, 2024
  7. Nov 03, 2024
  8. Nov 02, 2024
  9. Sep 23, 2024
  10. Sep 22, 2024
  11. Mar 20, 2024
    • Deucе's avatar
      Support MacPorts locations as well. · 99e3aada
      Deucе authored
      Search in both /usr/local (Homebrew) and /opt/local (MacPorts) for
      libraries.
      
      Also, have the name of GNU make be an in option in CI so we can use
      the Apple-provided make.
      99e3aada
  12. Mar 19, 2024
  13. Mar 17, 2024
  14. Feb 27, 2024
  15. Feb 21, 2024
  16. Feb 07, 2024
  17. Feb 05, 2024
    • Deucе's avatar
      Use --libs instead of -libs · 3a88919e
      Deucе authored
      3a88919e
    • Deucе's avatar
      Allow RWX pages on NetBSD and OpenBSD. · 691d585b
      Deucе authored
      By default, both NetBSD and OpenBSD will not allow pages to be mapped
      both writable and executable.
      
      On OpenBSD, if the filesystem is mounted with the wxallowed option,
      this would work, and before v6.0, passing -z wxallowed to the linker
      would allow it on a per-binary basis.  However, since this is not
      the default, and since the JS engine can use mprotect() to switch
      between RW and RX, I've decided to enable this instead.  This will
      slow things down, but it will work "out of the box".
      
      For NetBSD, the situation is different, you can't switch between
      RW and RX using mprotect()... instead, you need to use mremap() to
      get a separate mapping for each set of perms.  This does *not*
      appear to be present in the 1.8.5 source, so we can't do the same
      fix as OpenBSD.  Instead, NetBSD allows paxctl to add an elf note
      indicating that RWX is needed, and it "just works" (by default).
      691d585b
  18. Feb 04, 2024
  19. Dec 23, 2023
  20. Dec 16, 2023
Loading