summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/sf/antcontrib/cpptasks/CCTask.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/sf/antcontrib/cpptasks/CCTask.java')
-rw-r--r--src/main/java/net/sf/antcontrib/cpptasks/CCTask.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/net/sf/antcontrib/cpptasks/CCTask.java b/src/main/java/net/sf/antcontrib/cpptasks/CCTask.java
index 3a5506d..3197080 100644
--- a/src/main/java/net/sf/antcontrib/cpptasks/CCTask.java
+++ b/src/main/java/net/sf/antcontrib/cpptasks/CCTask.java
@@ -874,11 +874,11 @@ public class CCTask extends Task {
objectFiles.copyInto(objectFileArray);
final File[] sysObjectFileArray = new File[sysObjectFiles.size()];
sysObjectFiles.copyInto(sysObjectFileArray);
- final String baseName = _outfile.getName();
- final String[] fullNames = linkerConfig.getOutputFileNames(baseName, versionInfo);
- final File outputFile = new File(_outfile.getParent(), fullNames[0]);
+ final String outputBaseNameWithDir = _outfile.getName(); // like '/use/lib/gluegen_rt'
+ final String outputFullName = linkerConfig.getOutputFileName(outputBaseNameWithDir, versionInfo); // like 'libgluegen-rt.so'
+ final File outputFile = new File(_outfile.getParent(), outputFullName);
return new TargetInfo(linkerConfig, objectFileArray,
- sysObjectFileArray, outputFile, linkerConfig.getRebuild());
+ sysObjectFileArray, outputFile, outputFullName, linkerConfig.getRebuild());
}
public File getObjdir() {
return _objDir;