Search Unity

Please do not forget to add -no-pie in mkbundle or did you build Unity under Linux?

Discussion in 'Unity Hub' started by Deleted User, Feb 17, 2019.

  1. Deleted User

    Deleted User

    Guest

    Hello everyone, do not forget to add "-no-pie" in gcc/g++

    I have downloaded with Unity Hub
    I have checked because Unity executable has pie .. o, oh please don't use pie just "-no-pie" in gcc/g++

    Thanks

    Example I tell you why do I need to add "-no-pie" in gcc/g++?

    upload_2019-2-17_14-8-29.png
    example "gcc -o quad quad.c -lX11 -lGL -lGLU"
    That is not good.

    I suggest you how do you know "-no-pie" for latest Linux.
    upload_2019-2-17_14-10-32.png
    example: "gcc -o quad quad.c -lX11 -lGL -lGLU -no-pie"

    Please remember that "-no-pie" If you use mkbundle than you should download Mono Source from Github and edit with mkbundle.cs in latest end-of-compilation and add -no-pie in end-of-compilation than make -j12 and find mkbundle.exe from mono build than you copy mkbundle.exe and past to /usr/lib/mono/4.5/mkbundle.exe than you will try out that is like clean executable for Linux.

    If you don't know how do you replace? Than I have precompiled mkbundle for Linux with -no-pie in gcc / g++ under Linux only You can download mkbundle-no-pie and unpack it and open terminal and type: "cd ~/Downloads/mkbundle-no-pie && sudo cp mkbundle.exe /usr/lib/mono/4.5/mkbundle.exe" and you can try out.


    Good luck!
     
    Last edited by a moderator: Feb 17, 2019