Skip to content

Instantly share code, notes, and snippets.

@jpcima
Created July 1, 2018 16:23
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 jpcima/47086bb228febf8e5e65ee8a275dafa8 to your computer and use it in GitHub Desktop.
Save jpcima/47086bb228febf8e5e65ee8a275dafa8 to your computer and use it in GitHub Desktop.
diff -ru Minicomputer.old/editor/Memory.cpp Minicomputer/editor/Memory.cpp
--- Minicomputer.old/editor/Memory.cpp 2018-07-01 18:13:54.041739133 +0200
+++ Minicomputer/editor/Memory.cpp 2018-07-01 18:14:24.012891722 +0200
@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Memory.h"
+#include <unistd.h>
/**
* constructor
*/
diff -ru Minicomputer.old/SConstruct Minicomputer/SConstruct
--- Minicomputer.old/SConstruct 2018-07-01 18:13:54.032739688 +0200
+++ Minicomputer/SConstruct 2018-07-01 18:19:23.339433478 +0200
@@ -16,6 +16,8 @@
env.Append(CCFLAGS = ['-march=athlon-xp','-mtune=athlon-xp'])
guienv.Append(CPPFLAGS = ['-march=athlon-xp','-mtune=athlon-xp'])
+env.Append(LIBS = ['-lm'])
+guienv.Append(LIBS = ['-lm'])
# env.Append(CCFLAGS = ' -O3 -mfpmath=sse -msse -msse2 -fverbose-asm -ffast-math -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -Wall -fmessage-length=0')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment