Serge
Serge

Reputation: 12384

how the -incdir statement is supposed to be used in library mapping definitions?

The standard provides syntax for use of the '-incdir' in library maps:

library_declaration ::=
library library_identifier file_path_spec { , file_path_spec }
[ -incdir file_path_spec { , file_path_spec } ] ;

However, nowhere in the standard its behavior is defined, at least I could not find it.

There is a specific clause for the relative file names:

. specifies the directory containing the lib.map

Paths that do not begin with / are relative to the directory in which the current lib.map file is located.

So, there is just no place for the -incdir statement.

Does anyone has an explanation of its behavior?

Upvotes: 1

Views: 886

Answers (1)

dave_59
dave_59

Reputation: 42738

This is an open issue in the IEEE 1800 standard inherited from the IEEE 1364 standard. You will need to look at the documentation of the tool you are using. But in general, it means any file from that directory will get included into that library.

Upvotes: 1

Related Questions