Viktor,
writing it like this works ok
ifneq ($(filter $(HB_BUILD_STRIP),all lib),)
ARSTRIP = ${HB_CCPATH}${HB_CCPREFIX}strip -S $(LIB_DIR)/$@
else
ARSTRIP = @$(ECHO) did not strip $(LIB_DIR)/$@
endif
:)
Maurilio.
Viktor Szakáts wrote:
>
> On 2009 Sep 22, at 14:37, Maurilio Longo wrote:
>
>> Uhmm,
>>
>> wait, could it be that $(ARSTRIP) is empty here and this adds an empty
>> line at
>> the bottom of the define create_dynlib which adds a \r\n to the
>> generated rule?
>
> Yes, that's it. If that causes a problem, we should add some sort of guard
> there, or add it to the same line as $(AR) (don't know how to do this on
> OS/2). Anyhow it's strange because we produce empty lines in places like
> 'clean::' rules (but there it's directly there, not through a var).
>
> Brgds,
> Viktor
>
>
>>
>> Maurilio.
>>
>>
>> Maurilio Longo wrote:
>>> Hi,
>>>
>>> I'm getting a strange error
>>>
>>> gcc -I. -I../../../../../include -O3
>>> -IE:/repository/harbour/external/zlib -
>>> opngwutil.o -c ../../../pngwutil.c
>>> for %i in ( *.o ) do @echo ADDMOD %i >> __lib__.tmp
>>> ar -M < __lib__.tmp
>>> & ..\..\..\..\..\config\os2rm -f __lib__.tmp
>>> SYS1079: & was unexpected at this time.
>>> make[3]: *** [libpng.a] Error 1
>>>
>>> The strange thing is that it seems that make is splitting a line in
>>> the wrong
>>> position.
>>>
>>> What has changed since yesterday to make this happen?
>>>
>>> Maurilio.
>>>
>>>
>>
>> --
>> __________
>> | | | |__| Maurilio Longo
>> |_|_|_|____| farmaconsult s.r.l.
>>
>>
>> _______________________________________________
>> Harbour mailing list
>> [email protected]
>> http://lists.harbour-project.org/mailman/listinfo/harbour
>
> _______________________________________________
> Harbour mailing list
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
--
__________
| | | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour