|
@@ -1509,7 +1509,9 @@ begin
|
|
|
if not(token=_SEMICOLON) and not(idtoken=_NAME) then
|
|
|
begin
|
|
|
{ Always add library prefix and suffix to create an uniform name }
|
|
|
- hs:=ChangeFileExt(get_stringconst,target_info.sharedlibext);
|
|
|
+ hs:=get_stringconst;
|
|
|
+ if ExtractFileExt(hs)='' then
|
|
|
+ hs:=ChangeFileExt(hs,target_info.sharedlibext);
|
|
|
if Copy(hs,1,length(target_info.sharedlibprefix))<>target_info.sharedlibprefix then
|
|
|
hs:=target_info.sharedlibprefix+hs;
|
|
|
import_dll:=stringdup(hs);
|