#Customized Plexil distribution (4.0) for compatibility with Linux Yocto Poki (Intel Galileo/Edison)
Problems generated by the Make files included in the standard Plexil distribution:
-
unrecognized command line option '-m486'
gcc -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes -Wmissing-declarations -O2 -m486 -fPIC -I. -I/home/root/fs/plexil4/plexil-4.0.1/include -I/usr/include/bsd -DREDHAT_52 -DREDHAT_6 -DREDHAT_71 -DTHREADED -c -o obj/Linux-3.8/ipc.o ipc.c gcc: error: unrecognized command line option '-m486'
Workaround:
Replace -m486 with -mtune=i486 in Makefiles.
2. Makefile:283: recipe for target 'all' failed
```make
/usr/lib/gcc/i586-poky-linux/4.8.2/../../../../lib/crtn.o -O2 -Wl,-soname -Wl,libIpcUtils.so.0 -o .libs/libIpcUtils.so.0.0.0
/usr/lib/gcc/i586-poky-linux/4.8.2/../../../../i586-poky-linux/bin/ld: cannot find -lipc
collect2: error: ld returned 1 exit status
Makefile:331: recipe for target 'libIpcUtils.la' failed
make[3]: *** [libIpcUtils.la] Error 1
make[3]: Leaving directory '/home/root/fs/plexil4/plexil-4.0.1/src/interfaces/IpcUtils'
Makefile:352: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/root/fs/plexil4/plexil-4.0.1/src'
Makefile:283: recipe for target 'all' failed
Cause: head: invalid option -- '1'
Workaround:
Replace in all makefiles inside ipc/
```make
head -1
with
```make
head -n 1