Subject: | Build for String::Ediff is not at all portable |
String::Ediff does not build properly on a non-GNU non-Linux system. There are a number of minor issues which can trivially be fixed.
The issues are:
1. Should not force -shared into LDDFLAGS in Makefile.PL. Perl knows how to build a module so you should not override it.
2. Perl has been built with its own optimize settings so usually you do not need to define OPTIMIZE in Makefile.PL
3. Do not set _GNU_SOURCE if you don't need to.
4. st.c uses non-standard C++ style comments. These should be replaced with standard C /* comments. Sun cc does not like C++ comments for example.
When I've made these minor changes things seem to build properly.