From c6c98192497e44e6af3d0722e775f55e224c972a Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Fri, 22 Jun 2012 16:42:21 +0100
Subject: [PATCH] BUG: dynamicCodeContext: do not add line number to
 Make/options

---
 .../db/dynamicLibrary/dynamicCode/dynamicCodeContext.C    | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCodeContext.C b/src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCodeContext.C
index a5bb2a889af..22c49df9c07 100644
--- a/src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCodeContext.C
+++ b/src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCodeContext.C
@@ -112,13 +112,9 @@ Foam::dynamicCodeContext::dynamicCodeContext(const dictionary& dict)
         addLineDirective(include_, includePtr->startLineNumber(), dict.name());
     }
 
-    // Do not add line directive to options_ (Make/options) since at it is a
-    // single line at this point. Can be fixed.
+    // Do not add line directive to options_ (Make/options) and libs since
+    // they are preprocessed as a single line at this point. Can be fixed.
 
-    if (libsPtr)
-    {
-        addLineDirective(libs_, libsPtr->startLineNumber(), dict.name());
-    }
     if (localPtr)
     {
         addLineDirective(localCode_, localPtr->startLineNumber(), dict.name());
-- 
GitLab