get video pypowersim_wrapper running
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 29 Dec 2022 13:04:09 +0000 (13:04 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:16 +0000 (19:51 +0100)
media/pypowersim_wrapper/Makefile

index 7b6048272eb650c0bd6549ea883b7e0e6835f6e4..9c6ad5be4902613e2620a35decd1ee5fe1fe880e 100644 (file)
@@ -5,7 +5,7 @@ CXX=g++
 AS=powerpc64le-linux-gnu-as
 OBJCOPY=powerpc64le-linux-gnu-objcopy
 CFLAGS= -Iinclude -O -g3 -I/usr/include/python3.7m
-CXXFLAGS= -Iinclude -O -g3
+CXXFLAGS= -Iinclude -O -g3 -fpermissive
 ASFLAGS= -mlibresoc -mregnames
 LDFLAGS=-lgtest -pthread -lpython3.7m
 
@@ -13,6 +13,8 @@ EXAMPLEC     = pypowersim_wrapper_example.c
 EXAMPLEOBJ   = ${EXAMPLEC:.c=.o}
 
 ${EXAMPLE}: ${EXAMPLEOBJ}
+       ${CXX} -o ${EXAMPLE} ${EXAMPLEC} ${CFLAGS} ${CXXFLAGS} ${LDFLAGS}
+
 
 all: ${EXAMPLE}