This fixes the EMC2 simulator compilation on PowerPC-64. The check should probably turned upside down and check for (arch==x86 || arch==x86_64), but I don't know what magic strings uname -m spits out for various x86 flavors.
So to not introduce a regression, this just adds a check for ppc64. Of course other nonppc-nonX86 arches are still broken after this patch. Signed-off-by: Michael Buesch <[email protected]> --- Index: src/Makefile =================================================================== --- src.orig/Makefile 2009-04-24 19:28:32.000000000 +0200 +++ src/Makefile 2009-04-24 19:29:25.000000000 +0200 @@ -748,12 +748,13 @@ EXTRA_CFLAGS += -fPIC -Os RTOBJS := $(sort $(foreach mod,$(obj-m),$(call TORTOBJS,$(mod)))) RTDEPS := $(sort $(patsubst objects/%.o,depends/%.d, $(RTOBJS))) +IS_POWERPC = test `uname -m` = ppc -o `uname -m` = ppc64 modules: $(patsubst %.o,../rtlib/%.so,$(obj-m)) ../rtlib/%.so: $(ECHO) Linking $@ @ld -r -o objects/$*.tmp $^ - @if test `uname -m` != ppc; then objcopy -j .rtapi_export -O binary objects/$*.tmp objects/$*.exp; fi - @if test `uname -m` != ppc; then objcopy -G __i686.get_pc_thunk.bx `xargs -r0n1 echo -G < objects/$*.exp | grep -ve '^-G $$' | sort -u` objects/$*.tmp; fi + @if ! $(IS_POWERPC); then objcopy -j .rtapi_export -O binary objects/$*.tmp objects/$*.exp; fi + @if ! $(IS_POWERPC); then objcopy -G __i686.get_pc_thunk.bx `xargs -r0n1 echo -G < objects/$*.exp | grep -ve '^-G $$' | sort -u` objects/$*.tmp; fi @ld -shared -Bsymbolic -o $@ objects/$*.tmp -lm $(sort $(RTDEPS)): depends/rt%.d: %.c -- Greetings, Michael. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
