# mdynamic-no-pic

Generates code that is not position-independent but has position-independent external references.

## Syntax

Linux: | None

macOS: | -mdynamic-no-pic

Windows: | None

## Arguments

None

## Default

OFF | All references are generated as position independent.

## Description

This option generates code that is not position-independent but has position-independent external references.

The generated code is suitable for building executables, but it is not suitable for building shared libraries.

This option may reduce code size and produce more efficient code. It overrides the -fpic compiler option.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Data Options

## See Also

fpic compiler option