Avoid the problem of lines too long on HP
[u/mrichter/AliRoot.git] / conf / GeneralMacros
index 4aa1e8f4f4c3dd6fa0fe15cc574af9d485f182f9..fd2a67f597980f85f767b3487f2abf00f4986c6e 100644 (file)
@@ -5,9 +5,11 @@ $(SLIBRARY):
                @[ -d $(dir $@) ] || mkdir $(dir $@)
                @rm -f $@
                 ifeq ($(PLATFORM),aix)
-                  @$(SHLD) -o $@ $(LIBS) -p 0 $(filter-out dirs,$^)
+                  @cd $(ALICE_TARGET) ;\
+                  $(SHLD) -o $@ $(LIBS) -p 0 $(patsubst $(ALICE_TARGET)/%,%,$(filter-out dirs,$^))
                 else
-                  @$(SHLD) $(SOFLAGS) $(LDFLAGS) $(filter-out dirs,$^) $(SHLIB) -o $@
+                  @cd $(ALICE_TARGET) ;\
+                  $(SHLD) $(SOFLAGS) $(LDFLAGS) $(patsubst $(ALICE_TARGET)/%,%,$(filter-out dirs,$^)) $(SHLIB) -o $@
                 endif
                @chmod 555 $@
                @echo "$@ done"