John-K / pspdecrypt

Simple tool to decrypt PSP binaries
GNU General Public License v3.0
101 stars 21 forks source link

Automatic Builds and Windows/MacOS support #10

Closed krystalgamer closed 3 years ago

krystalgamer commented 3 years ago

Here's the changes made to the code to allow it compile in other OSes:

For the automatic builds -static flag statically links user libraries which makes distribution much easier, specially for the Windows version.

krystalgamer commented 3 years ago

Noticed -Bstatic didn't work as I expected. Due to not having a simple OS detection mechanism I just made the MACBUILD flag which is used as following make MACBUILD=1

EDIT: This is not used anymore

artart78 commented 3 years ago

What's the issue with static compilation for other platforms?

krystalgamer commented 3 years ago

What's the issue with static compilation for other platforms?

Linux/Windows there's no problem but for MacOS you simply can't :/

You get an error related to crt0.o: https://stackoverflow.com/questions/5259249/creating-static-mac-os-x-c-build

Either way I just simplified the process so now there's an EXTRA_FLAG which can be used to pass any extra flags we want. It's only used for the windows build to static link it.